Class DefaultParanamer
java.lang.Object
com.thoughtworks.paranamer.DefaultParanamer
- All Implemented Interfaces:
Paranamer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate static final Stringprivate static final StringFields inherited from interface Paranamer
EMPTY_NAMES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringfindFirstMatchingLine(String data, String prefix) Filter the mappings and only return lines matching the prefix passed in.private static StringgetParameterListResource(Class<?> declaringClass) private static String[]getParameterNames(Class<?> declaringClass, String parameterTypes, String prefix) private static StringgetParameterTypeName(Class<?> cls) (package private) static StringgetParameterTypeNamesCSV(Class<?>[] parameterTypes) String[]lookupParameterNames(AccessibleObject methodOrConstructor) Lookup the parameter names of a given method.String[]lookupParameterNames(AccessibleObject methodOrCtor, boolean throwExceptionIfMissing) Lookup the parameter names of a given method.
-
Field Details
-
COMMA
- See Also:
-
SPACE
- See Also:
-
__PARANAMER_DATA
- See Also:
-
-
Constructor Details
-
DefaultParanamer
public DefaultParanamer()
-
-
Method Details
-
lookupParameterNames
Description copied from interface:ParanamerLookup the parameter names of a given method.- Specified by:
lookupParameterNamesin interfaceParanamer- Parameters:
methodOrConstructor- theMethodorConstructorfor which the parameter names are looked up.- Returns:
- A list of the parameter names.
-
lookupParameterNames
public String[] lookupParameterNames(AccessibleObject methodOrCtor, boolean throwExceptionIfMissing) Description copied from interface:ParanamerLookup the parameter names of a given method.- Specified by:
lookupParameterNamesin interfaceParanamer- Parameters:
methodOrCtor- theMethodorConstructorfor which the parameter names are looked up.throwExceptionIfMissing- whether to throw an exception if no Paranamer data found (versus return null).- Returns:
- A list of the parameter names.
-
getParameterNames
-
getParameterTypeNamesCSV
-
getParameterListResource
-
findFirstMatchingLine
-
getParameterTypeName
-