Example usage for Java org.objectweb.asm ClassReader fields, constructors, methods, implement or subclass
The text is from its open source code.
int | SKIP_CODE A flag to skip the Code attributes. |
int | SKIP_DEBUG A flag to skip the SourceFile, SourceDebugExtension, LocalVariableTable, LocalVariableTypeTable, LineNumberTable and MethodParameters attributes. |
int | SKIP_FRAMES A flag to skip the StackMap and StackMapTable attributes. |
int | EXPAND_FRAMES A flag to expand the stack map frames. |
ClassReader(final byte[] classFile) Constructs a new ClassReader object. | |
ClassReader(final InputStream inputStream) Constructs a new ClassReader object. | |
ClassReader(final String className) Constructs a new ClassReader object. | |
ClassReader(final byte[] classFileBuffer, final int classFileOffset, final int classFileLength) Constructs a new ClassReader object. | |
ClassReader(final byte[] classFileBuffer, final int classFileOffset, final boolean checkClassVersion) Constructs a new ClassReader object. |
void | accept(final ClassVisitor classVisitor, final int parsingOptions) Makes the given visitor visit the JVMS ClassFile structure passed to the constructor of this ClassReader . |
void | accept(final ClassVisitor classVisitor, final Attribute[] attributePrototypes, final int parsingOptions) Makes the given visitor visit the JVMS ClassFile structure passed to the constructor of this ClassReader . |
int | getAccess() Returns the class's access flags (see Opcodes ). |
String | getClassName() Returns the internal name of the class (see Type#getInternalName() ). |
String[] | getInterfaces() Returns the internal names of the implemented interfaces (see Type#getInternalName() ). |
int | getItem(final int constantPoolEntryIndex) Returns the start offset in this ClassReader of a JVMS 'cp_info' structure (i.e. |
int | getItemCount() Returns the number of entries in the class's constant pool table. |
int | getMaxStringLength() Returns a conservative estimate of the maximum length of the strings contained in the class's constant pool table. |
String | getSuperName() Returns the internal of name of the super class (see Type#getInternalName() ). |
int | readByte(final int offset) Reads a byte value in this ClassReader . |
Object | readConst(final int constantPoolEntryIndex, final char[] charBuffer) Reads a numeric or string constant pool entry in this ClassReader . |
int | readInt(final int offset) Reads a signed int value in this ClassReader . |
short | readShort(final int offset) Reads a signed short value in this ClassReader . |
int | readUnsignedShort(final int offset) Reads an unsigned short value in this ClassReader . |
String | readUTF8(final int offset, final char[] charBuffer) Reads a CONSTANT_Utf8 constant pool entry in this ClassReader . |