Portions of this source file are a fork of ASM.
| Modifier and Type | Class and Description |
|---|---|
| private static class | BytecodeReadingParanamer.ClassReader
A Java class parser to make a Class Visitor visit an existing class. |
| private static class | BytecodeReadingParanamer.MethodCollector
Objects of this class collects information from a specific method. |
| private static class | BytecodeReadingParanamer.Type
A Java type. |
| private static class | BytecodeReadingParanamer.TypeCollector
The type collector waits for an specific method in order to start a method collector. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private InputStream | |
| private InputStream | |
| public String[] | lookupParameterNames(AccessibleObject
the methodOrConstructor)Method or Constructor for which the parameter names
are looked up.Implements com. |
| public String[] | lookupParameterNames(AccessibleObject
the methodOrCtor, boolean Method or Constructor for which the parameter names
are looked up.whether to throw an exception if no Paranamer data found (versus return null). throwExceptionIfMissing)Implements com. |
| primitives | back to summary |
|---|---|
| private static final Map<String, String> primitives | |
| BytecodeReadingParanamer | back to summary |
|---|---|
| public BytecodeReadingParanamer() | |
| getClassAsStream | back to summary |
|---|---|
| private InputStream getClassAsStream(Class<?> clazz) | |
| getClassAsStream | back to summary |
|---|---|
| private InputStream getClassAsStream(ClassLoader classLoader, String className) | |
| lookupParameterNames | back to summary |
|---|---|
| public String[] lookupParameterNames(AccessibleObject methodOrConstructor) Implements com. Doc from com. Lookup the parameter names of a given method.
| |
| lookupParameterNames | back to summary |
|---|---|
| public String[] lookupParameterNames(AccessibleObject methodOrCtor, boolean throwExceptionIfMissing) Implements com. Doc from com. Lookup the parameter names of a given method.
| |
| Modifier and Type | Field and Description |
|---|---|
| public final byte[] | b
The class to be parsed. |
| pack-priv static final int | DOUBLE
The type of CONSTANT_Double constant pool items. |
| pack-priv static final int | FIELD
The type of CONSTANT_Fieldref constant pool items. |
| pack-priv static final int | FLOAT
The type of CONSTANT_Float constant pool items. |
| public final int | |
| pack-priv static final int | IMETH
The type of CONSTANT_InterfaceMethodref constant pool items. |
| pack-priv static final int | INT
The type of CONSTANT_Integer constant pool items. |
| pack-priv static final int | INVOKEDYN
The type of CONSTANT_InvokeDynamic constant pool items. |
| private final int[] | |
| pack-priv static final int | LONG
The type of CONSTANT_Long constant pool items. |
| private final int | maxStringLength
Maximum length of the strings contained in the constant pool of the class. |
| pack-priv static final int | METH
The type of CONSTANT_Methodref constant pool items. |
| pack-priv static final int | MHANDLE
The type of CONSTANT_MethodHandle constant pool items. |
| pack-priv static final int | NAME_TYPE
The type of CONSTANT_NameAndType constant pool items. |
| private final String[] | strings
The String objects corresponding to the CONSTANT_Utf8 items. |
| pack-priv static final int | UTF8
The type of CONSTANT_Utf8 constant pool items. |
| Access | Constructor and Description |
|---|---|
| private | ClassReader(final byte[]
the bytecode of the class to be read. b)Constructs a new |
| private | ClassReader(final byte[]
the bytecode of the class to be read. b, final int the start offset of the class data. off)Constructs a new |
| private | ClassReader(final InputStream
an input stream from which to read the class. is)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| private void | accept(final BytecodeReadingParanamer.
the visitor that must visit this class. classVisitorMakes the given visitor visit the Java class of this |
| private static byte[] | Returns: the bytecode read from the given input stream.an input stream from which to read the class. is)Reads the bytecode of a class. |
| private int | |
| private int | |
| private int | Returns: the read value.the start index of the value to be read in index)b.Reads an unsigned short value in |
| private String | Returns: the String corresponding to the specified UTF8 string.start offset of the UTF8 string to be read. index, final int length of the UTF8 string to be read. utfLen, final char[] buffer to be used to read the string. This buffer must be
sufficiently large. It is not automatically resized. buf)Reads UTF8 string in |
| private String | Returns: the String corresponding to the specified UTF8 item.the start index of an unsigned short value in index, final char[] b,
whose value is the index of an UTF8 constant pool item.buffer to be used to read the item. This buffer must be
sufficiently large. It is not automatically resized. buf)Reads an UTF8 string constant pool item in |
| b | back to summary |
|---|---|
| public final byte[] b The class to be parsed. The content of this array must not be modified. This field is intended for Attribute sub classes, and is normally not needed by class generators or adapters. | |
| DOUBLE | back to summary |
|---|---|
| pack-priv static final int DOUBLE The type of CONSTANT_Double constant pool items. | |
| FIELD | back to summary |
|---|---|
| pack-priv static final int FIELD The type of CONSTANT_Fieldref constant pool items. | |
| FLOAT | back to summary |
|---|---|
| pack-priv static final int FLOAT The type of CONSTANT_Float constant pool items. | |
| header | back to summary |
|---|---|
| public final int header Start index of the class header information (access, name...) in
| |
| IMETH | back to summary |
|---|---|
| pack-priv static final int IMETH The type of CONSTANT_InterfaceMethodref constant pool items. | |
| INT | back to summary |
|---|---|
| pack-priv static final int INT The type of CONSTANT_Integer constant pool items. | |
| INVOKEDYN | back to summary |
|---|---|
| pack-priv static final int INVOKEDYN The type of CONSTANT_InvokeDynamic constant pool items. | |
| items | back to summary |
|---|---|
| private final int[] items The start index of each constant pool item in | |
| LONG | back to summary |
|---|---|
| pack-priv static final int LONG The type of CONSTANT_Long constant pool items. | |
| maxStringLength | back to summary |
|---|---|
| private final int maxStringLength Maximum length of the strings contained in the constant pool of the class. | |
| METH | back to summary |
|---|---|
| pack-priv static final int METH The type of CONSTANT_Methodref constant pool items. | |
| MHANDLE | back to summary |
|---|---|
| pack-priv static final int MHANDLE The type of CONSTANT_MethodHandle constant pool items. | |
| NAME_TYPE | back to summary |
|---|---|
| pack-priv static final int NAME_TYPE The type of CONSTANT_NameAndType constant pool items. | |
| strings | back to summary |
|---|---|
| private final String[] strings The String objects corresponding to the CONSTANT_Utf8 items. This cache avoids multiple parsing of a given CONSTANT_Utf8 constant pool item, which GREATLY improves performances (by a factor 2 to 3). This caching strategy could be extended to all constant pool items, but its benefit would not be so great for these items (because they are much less expensive to parse than CONSTANT_Utf8 items). | |
| UTF8 | back to summary |
|---|---|
| pack-priv static final int UTF8 The type of CONSTANT_Utf8 constant pool items. | |
| ClassReader | back to summary |
|---|---|
| private ClassReader(final byte[] b) Constructs a new
| |
| ClassReader | back to summary |
|---|---|
| private ClassReader(final byte[] b, final int off) Constructs a new
| |
| ClassReader | back to summary |
|---|---|
| private ClassReader(final InputStream is) throws IOException Constructs a new
| |
| accept | back to summary |
|---|---|
| private void accept(final BytecodeReadingParanamer. Makes the given visitor visit the Java class of this
| |
| readClass | back to summary |
|---|---|
| private static byte[] readClass(final InputStream is) throws IOException Reads the bytecode of a class.
| |
| readInt | back to summary |
|---|---|
| private int readInt(final int index) Reads a signed int value in
| |
| readMethod | back to summary |
|---|---|
| private int readMethod(BytecodeReadingParanamer. | |
| readUnsignedShort | back to summary |
|---|---|
| private int readUnsignedShort(final int index) Reads an unsigned short value in
| |
| readUTF | back to summary |
|---|---|
| private String readUTF(int index, final int utfLen, final char[] buf) Reads UTF8 string in
| |
| readUTF8 | back to summary |
|---|---|
| private String readUTF8(int index, final char[] buf) Reads an UTF8 string constant pool item in
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| private final int | |
| private final int | |
| private final StringBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| private boolean | |
| public void |
| currentParameter | back to summary |
|---|---|
| private int currentParameter | |
| debugInfoPresent | back to summary |
|---|---|
| private boolean debugInfoPresent | |
| ignoreCount | back to summary |
|---|---|
| private final int ignoreCount | |
| paramCount | back to summary |
|---|---|
| private final int paramCount | |
| result | back to summary |
|---|---|
| private final StringBuffer result | |
| MethodCollector | back to summary |
|---|---|
| private MethodCollector(int ignoreCount, int paramCount) | |
| getResult | back to summary |
|---|---|
| private String getResult() | |
| isDebugInfoPresent | back to summary |
|---|---|
| private boolean isDebugInfoPresent() | |
| visitLocalVariable | back to summary |
|---|---|
| public void visitLocalVariable(String name, int index) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | ARRAY
The sort of array reference types. |
| private static final int | BOOLEAN
The sort of the boolean type. |
| private static final BytecodeReadingParanamer. | BOOLEAN_TYPE
The boolean type. |
| private char[] | buf
A buffer containing the internal name of this Java type. |
| private static final int | BYTE
The sort of the byte type. |
| private static final BytecodeReadingParanamer. | BYTE_TYPE
The byte type. |
| private static final int | CHAR
The sort of the char type. |
| private static final BytecodeReadingParanamer. | CHAR_TYPE
The char type. |
| private static final int | DOUBLE
The sort of the double type. |
| private static final BytecodeReadingParanamer. | DOUBLE_TYPE
The double type. |
| private static final int | FLOAT
The sort of the float type. |
| private static final BytecodeReadingParanamer. | FLOAT_TYPE
The float type. |
| private static final int | INT
The sort of the int type. |
| private static final BytecodeReadingParanamer. | INT_TYPE
The int type. |
| private final int | len
The length of the internal name of this Java type. |
| private static final int | LONG
The sort of the long type. |
| private static final BytecodeReadingParanamer. | LONG_TYPE
The long type. |
| private static final int | OBJECT
The sort of object reference type. |
| private int | |
| private static final int | SHORT
The sort of the short type. |
| private static final BytecodeReadingParanamer. | SHORT_TYPE
The short type. |
| private final int | sort
The sort of this Java type. |
| private static final int | VOID
The sort of the void type. |
| private static final BytecodeReadingParanamer. | VOID_TYPE
The void type. |
| Access | Constructor and Description |
|---|---|
| private | |
| private | Type(final int
the sort of the reference type to be constructed. sort, final char[] a buffer containing the descriptor of the previous type. buf, final int the offset of this descriptor in the previous buffer. off, final int the length of this descriptor. len)Constructs a reference type. |
| Modifier and Type | Method and Description |
|---|---|
| private static BytecodeReadingParanamer. | Returns: the Java types corresponding to the argument types of the given method descriptor.a method descriptor. methodDescriptor)Returns the Java types corresponding to the argument types of the given method descriptor. |
| private String | Returns: the fully qualified name of the class corresponding to this type.Returns the name of the class corresponding to this type. |
| private int | Returns: the number of dimensions of this array type.Returns the number of dimensions of this array type. |
| private BytecodeReadingParanamer. | Returns: Returns the type of the elements of this array type.Returns the type of the elements of this array type. |
| private static BytecodeReadingParanamer. | Returns: the Java type corresponding to the given type descriptor.a buffer containing a type descriptor. buf, final int the offset of this descriptor in the previous buffer. off)Returns the Java type corresponding to the given type descriptor. |
| ARRAY | back to summary |
|---|---|
| private static final int ARRAY The sort of array reference types. | |
| BOOLEAN | back to summary |
|---|---|
| private static final int BOOLEAN The sort of the boolean type. | |
| BOOLEAN_TYPE | back to summary |
|---|---|
| private static final BytecodeReadingParanamer. The boolean type. | |
| buf | back to summary |
|---|---|
| private char[] buf A buffer containing the internal name of this Java type. This field is only used for reference types. | |
| BYTE | back to summary |
|---|---|
| private static final int BYTE The sort of the byte type. | |
| BYTE_TYPE | back to summary |
|---|---|
| private static final BytecodeReadingParanamer. The byte type. | |
| CHAR | back to summary |
|---|---|
| private static final int CHAR The sort of the char type. | |
| CHAR_TYPE | back to summary |
|---|---|
| private static final BytecodeReadingParanamer. The char type. | |
| DOUBLE | back to summary |
|---|---|
| private static final int DOUBLE The sort of the double type. | |
| DOUBLE_TYPE | back to summary |
|---|---|
| private static final BytecodeReadingParanamer. The double type. | |
| FLOAT | back to summary |
|---|---|
| private static final int FLOAT The sort of the float type. | |
| FLOAT_TYPE | back to summary |
|---|---|
| private static final BytecodeReadingParanamer. The float type. | |
| INT | back to summary |
|---|---|
| private static final int INT The sort of the int type. | |
| INT_TYPE | back to summary |
|---|---|
| private static final BytecodeReadingParanamer. The int type. | |
| len | back to summary |
|---|---|
| private final int len The length of the internal name of this Java type. | |
| LONG | back to summary |
|---|---|
| private static final int LONG The sort of the long type. | |
| LONG_TYPE | back to summary |
|---|---|
| private static final BytecodeReadingParanamer. The long type. | |
| OBJECT | back to summary |
|---|---|
| private static final int OBJECT The sort of object reference type. | |
| off | back to summary |
|---|---|
| private int off The offset of the internal name of this Java type in | |
| SHORT | back to summary |
|---|---|
| private static final int SHORT The sort of the short type. | |
| SHORT_TYPE | back to summary |
|---|---|
| private static final BytecodeReadingParanamer. The short type. | |
| sort | back to summary |
|---|---|
| private final int sort The sort of this Java type. | |
| VOID | back to summary |
|---|---|
| private static final int VOID The sort of the void type. | |
| VOID_TYPE | back to summary |
|---|---|
| private static final BytecodeReadingParanamer. The void type. | |
| Type | back to summary |
|---|---|
| private Type(final int sort) Constructs a primitive type.
| |
| Type | back to summary |
|---|---|
| private Type(final int sort, final char[] buf, final int off, final int len) Constructs a reference type.
| |
| getArgumentTypes | back to summary |
|---|---|
| private static BytecodeReadingParanamer. Returns the Java types corresponding to the argument types of the given method descriptor.
| |
| getClassName | back to summary |
|---|---|
| private String getClassName() Returns the name of the class corresponding to this type.
| |
| getDimensions | back to summary |
|---|---|
| private int getDimensions() Returns the number of dimensions of this array type. This method should only be used for an array type.
| |
| getElementType | back to summary |
|---|---|
| private BytecodeReadingParanamer. Returns the type of the elements of this array type. This method should only be used for an array type.
| |
| getType | back to summary |
|---|---|
| private static BytecodeReadingParanamer. Returns the Java type corresponding to the given type descriptor.
| |
| Modifier and Type | Field and Description |
|---|---|
| private BytecodeReadingParanamer. | |
| private static final String | |
| private final String | |
| private final Class | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| private String[] | |
| public BytecodeReadingParanamer. |
| collector | back to summary |
|---|---|
| private BytecodeReadingParanamer. | |
| COMMA | back to summary |
|---|---|
| private static final String COMMA | |
| methodName | back to summary |
|---|---|
| private final String methodName | |
| parameterTypes | back to summary |
|---|---|
| private final Class<?>[] parameterTypes | |
| throwExceptionIfMissing | back to summary |
|---|---|
| private final boolean throwExceptionIfMissing | |
| TypeCollector | back to summary |
|---|---|
| private TypeCollector(String methodName, Class<?>[] parameterTypes, boolean throwExceptionIfMissing) | |
| correctTypeName | back to summary |
|---|---|
| private String correctTypeName(BytecodeReadingParanamer. | |
| getParameterNamesForMethod | back to summary |
|---|---|
| private String[] getParameterNamesForMethod() | |
| visitMethod | back to summary |
|---|---|
| public BytecodeReadingParanamer. | |