Class BytecodeReadingParanamer
java.lang.Object
com.thoughtworks.paranamer.BytecodeReadingParanamer
- All Implemented Interfaces:
Paranamer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classA Java class parser to make a Class Visitor visit an existing class.private static classObjects of this class collects information from a specific method.private static classA Java type.private static classThe type collector waits for an specific method in order to start a method collector. -
Field Summary
FieldsFields inherited from interface Paranamer
EMPTY_NAMES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate InputStreamgetClassAsStream(Class<?> clazz) private InputStreamgetClassAsStream(ClassLoader classLoader, String className) 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
-
primitives
-
-
Constructor Details
-
BytecodeReadingParanamer
public BytecodeReadingParanamer()
-
-
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.
-
getClassAsStream
-
getClassAsStream
-