A node that represents a bytecode instruction.
Makes the given visitor visit this annotation.
Makes the given class visitor visit this class.
Makes the given class visitor visit this field.
Makes the given class visitor visit this inner class.
Makes the given class visitor visit this method.
Makes the given visitor visit the Java class of this
ClassReader
.
Makes the given visitor visit the Java class of this
ClassReader
.
Makes the given code visitor visit this instruction.
Makes the given code visitor visit this instruction.
Makes the given code visitor visit this instruction.
Makes the given visitor visit this instruction.
Makes the given code visitor visit this instruction.
Makes the given code visitor visit this instruction.
Makes the given code visitor visit this instruction.
Makes the given visitor visit this line number declaration.
Makes the given visitor visit this local variable declaration.
Makes the given code visitor visit this instruction.
Makes the given code visitor visit this instruction.
Makes the given code visitor visit this instruction.
Makes the given visitor visit this try catch block.
Makes the given code visitor visit this instruction.
The class's access flags (see
Opcodes
).
The field's access flags (see
Opcodes
).
The access flags of the inner class as originally declared in the enclosing
class.
The method's access flags (see
Opcodes
).
Constant for the
math
method.
Analyzes the given method.
A semantic bytecode analyzer.
Thrown if a problem occurs during the analysis of a method.
Constant for the
math
method.
The default value of this annotation interface method.
A node that represents an annotationn.
A visitor to visit a Java annotation.
Appends an internal name, a type descriptor or a type signature to
buf
.
Appends the name of the given label to buf
.
Appends a quoted string to a given buffer.
ARRAY - static field in class org.objectweb.asm.
Type The sort of array reference types.
Generates the instruction to compute the length of an array.
Generates the instruction to load an element from an array.
Generates the instruction to store an element in an array.
A ContentHandler
that transforms XML document into Java class file.
An attribute that can print the ASM code to create an equivalent attribute.
An abstract ASMifier visitor.
An
AnnotationVisitor
that prints the ASM code that generates the
annotations it visits.
A
ClassVisitor
that prints the ASM code that generates the classes
it visits.
A
FieldVisitor
that prints the ASM code that generates the fields
it visits.
A
MethodVisitor
that prints the ASM code that generates the methods
it visits.
Prints the ASM code to create an attribute equal to this attribute.
Prints the ASM code to create an attribute equal to this attribute.
A non standard class, field, method or code attribute.
Constructs a new empty attribute.
The non standard attributes of this class, field or method.
Generates the instructions to cast a numerical value from one type to
another.
Marks the start of an exception handler.
CHAR - static field in class org.objectweb.asm.
Type The sort of the char type.
Generates the instruction to check that the top stack value is of the
given type.
A
ClassAdapter
that checks that its methods are properly
used.
Constant used in
appendDescriptor
for class
signatures, formatted in default Java notation (non-bytecode)
Constant used in
appendDescriptor
for class
signatures, formatted in bytecode notation
A node that represents a class.
A Java class parser to make a
ClassVisitor
visit an existing class.
A visitor to visit a Java class.
Clears the operand stack of this frame.
true if the maximum stack size and number of local variables must
be automatically computed.
Flag that indicates if we need to compute SVUID.
Returns the value of SVUID if the class doesn't have one already.
Interprets a bytecode instruction that moves a value on the stack or to or
from local variables.
Interprets a bytecode instruction that moves a value on the stack or to or
from local variables.
The constant to be loaded on the stack.
Current instance of the
ClassWriter
used to write class bytecode.
D2F - static field in class org.objectweb.asm.
Opcodes D2I - static field in class org.objectweb.asm.
Opcodes D2L - static field in class org.objectweb.asm.
Opcodes A
Value
that is represented by its type in a two types type system.
The class descriptor of the annotation class.
The field's descriptor (see
Type
).
The field's descriptor (see
Type
).
The type descriptor of this local variable.
The method's descriptor (see
Type
).
The method's descriptor (see
Type
).
An array type descriptor (see
Type
).
The operand of this instruction.
Beginning of the default handler block.
Beginning of the default handler block.
Number of dimensions of the array to allocate.
Constant for the
math
method.
DOUBLE - static field in class org.objectweb.asm.
Type The sort of the double type.
DUP - static field in class org.objectweb.asm.
Opcodes Generates a DUP instruction.
Generates a DUP2 instruction.
Generates a DUP2_X1 instruction.
Generates a DUP2_X2 instruction.
Generates a DUP_X1 instruction.
Generates a DUP_X2 instruction.
Constant for the
ifCmp
method.
Generates the code for a switch case.
Generates the code for the default switch case.
Returns the argument types of the method described by this object.
Returns the Java types corresponding to the argument types of the given
method.
Returns the Java types corresponding to the argument types of the given
method descriptor.
Returns the name of the class corresponding to this type.
Returns the descriptor of the method described by this object.
Returns the descriptor corresponding to this Java type.
Returns the descriptor corresponding to the given Java type.
Returns the number of dimensions of this array type.
Returns the type of the elements of this array type.
Generates the instruction to push the value of a non static field on the
stack.
Returns the symbolic stack frame for each instruction of the last recently
analyzed method.
Returns the exception handlers for the given instruction.
Returns the index of the given instruction.
Returns the internal name of the class corresponding to this object type.
Returns the internal name of the given class.
Returns the start index of the constant pool item in
b
, plus
one.
Returns the labels corresponding to this attribute.
Returns the labels corresponding to this attribute.
Returns the value of the given local variable.
Returns the index of the given local variable.
Returns the maximum number of local variables of this frame.
Returns the type of the given local variable.
Returns a
Method
corresponding to the given Java method
declaration.
Returns the descriptor corresponding to the given method.
Returns the descriptor corresponding to the given argument and return
types.
Returns the name of the method described by this object.
Returns the offset corresponding to this label.
Returns the opcode of this instruction.
Returns a JVM instruction opcode adapted to this Java type.
Returns the return type of the method described by this object.
Returns the Java type corresponding to the return type of the given
method.
Returns the Java type corresponding to the return type of the given
method descriptor.
Returns the size of this value in words.
Returns the size of values of this type.
Returns the size of this value in words.
Returns the sort of this Java type.
Returns the value of the given operand stack slot.
Returns the number of values in the operand stack of this frame.
Generates the instruction to push the value of a static field on the
stack.
Returns the text printed by this visitor.
Returns the type of this instruction.
Returns the type of this instruction.
Returns the type of this instruction.
Returns the type of this instruction.
Returns the type of this instruction.
Returns the type of this instruction.
Returns the type of this instruction.
Returns the type of this instruction.
Returns the type of this instruction.
Returns the type of this instruction.
Returns the type of this instruction.
Returns the Java type corresponding to the given class.
Returns the Java type corresponding to the given type descriptor.
Generates the instruction to jump to the given label.
Constant for the
ifCmp
method.
I2B - static field in class org.objectweb.asm.
Opcodes I2C - static field in class org.objectweb.asm.
Opcodes I2D - static field in class org.objectweb.asm.
Opcodes I2F - static field in class org.objectweb.asm.
Opcodes I2L - static field in class org.objectweb.asm.
Opcodes I2S - static field in class org.objectweb.asm.
Opcodes Identifier of the annotation visitor variable in the produced code.
Generates the instructions to jump to a label based on the comparison of
the top two stack values.
Generates the instructions to jump to a label based on the comparison of
the top two integer stack values.
Generates the instruction to jump to the given label if the top stack
value is not null.
Generates the instruction to jump to the given label if the top stack
value is null.
Generates the instruction to increment the given local variable.
A node that represents an IINC instruction.
Amount to increment the local variable by.
The local variable's index.
Copies the state of the given frame into this frame.
Informations about the inner classes of this class.
A node that represents an inner class.
The (simple) name of the inner class inside its enclosing class.
A node that represents a zero operand instruction.
The instructions that can produce this value.
Wildcard for a normal type argument.
Generates the instruction to test if the top stack value is of the
given type.
The instructions of this method.
INT - static field in class org.objectweb.asm.
Type The sort of the int type.
Interfaces implemented by the class.
A semantic bytecode interpreter.
A node that represents an instruction with a single int operand.
The runtime invisible annotations of this class, field or method.
The runtime invisible parameter annotations of this method.
Generates the instruction to invoke a constructor.
Generates the instruction to invoke an interface method.
Generates the instruction to invoke a static method.
Generates the instruction to invoke a normal method.
IOR - static field in class org.objectweb.asm.
Opcodes Returns true if this type of attribute is a code attribute.
Returns true if this type of attribute is a code attribute.
Returns true if this type of attribute is unknown.
Returns true if this type of attribute is unknown.
L2D - static field in class org.objectweb.asm.
Opcodes L2F - static field in class org.objectweb.asm.
Opcodes L2I - static field in class org.objectweb.asm.
Opcodes The operand of this instruction.
A label represents a position in the bytecode of a method.
Map of the active
Label
instances for current method.
Beginnings of the handler blocks.
Beginnings of the handler blocks.
LDC - static field in class org.objectweb.asm.
Opcodes A node that represents an LDC instruction.
Constant for the
ifCmp
method.
A node that represents a line number declaration.
The line numbers of this method.
Generates the instruction to load the given method argument on the stack.
Generates the instructions to load all the method arguments on the stack,
as a single object array.
Generates the instructions to load all the method arguments on the stack.
Generates the instructions to load the given method arguments on the
stack.
Generates the instruction to load the given local variable on the stack.
Generates the instruction to load 'this' on the stack.
A node that represents a local variable declaration.
The local variables of this method.
A
MethodAdapter
that renumbers local variables in their order of
appearance.
LONG - static field in class org.objectweb.asm.
Type The sort of the long type.
A node that represents a LOOKUPSWITCH instruction.
LOR - static field in class org.objectweb.asm.
Opcodes Constant for the
ifCmp
method.
Prints the ASM source code to generate the given class to the standard
output.
Prints a disassembled view of the given class to the standard output.
Marks the current code position with a new label.
Marks the current code position with the given label.
Generates the instruction to do the specified mathematical or logical
operation.
The maximum number of local variables of this method.
The maximum stack size of this method.
An abstract class, field or method node.
Merges this frame with the given frame (case of a RET instruction).
Merges this frame with the given frame.
A named method descriptor.
Constant used in
appendDescriptor
for method
descriptors, formatted in bytecode notation
Constant used in
appendDescriptor
for method
signatures, formatted in bytecode notation
A node that represents a method instruction.
A node that represents a method.
The methods of this class.
A visitor to visit a Java method.
Generates the instruction to get the monitor of the top stack value.
Generates the instruction to release the monitor of the top stack value.
Constant for the
math
method.
A node that represents a MULTIANEWARRAY instruction.
The name of the variable for this visitor in the produced code.
The name of a local variable.
Internal name of the class
Interprets a bytecode instruction with a variable number of arguments.
Interprets a bytecode instruction with a variable number of arguments.
Constant for the
ifCmp
method.
Constant for the
math
method.
NEW - static field in class org.objectweb.asm.
Opcodes Generates the instruction to create a new array.
Adds a class reference to the constant pool of the class being build.
Adds a number or string constant to the constant pool of the class being
build.
Creates a control flow graph edge.
Adds a field reference to the constant pool of the class being build.
Constructs a new frame with the given size.
Constructs a new frame that is identical to the given frame.
Generates the instruction to create a new object.
Creates a new local variable of the given type.
Adds a method reference to the constant pool of the class being build.
Adds a name and type to the constant pool of the class being build.
Interprets a bytecode instruction without arguments.
Interprets a bytecode instruction without arguments.
Adds an UTF8 string to the constant pool of the class being build.
Creates a new value that represents the given type.
Creates a new value that represents the given type.
NOP - static field in class org.objectweb.asm.
Opcodes Generates the instructions to compute the bitwise negation of the top
stack value.
OBJECT - static field in class org.objectweb.asm.
Type The sort of object reference type.
The opcode of this instruction.
The names of the Java Virtual Machine opcodes.
Defines the JVM opcodes, access flags and array type codes.
The operand of this instruction.
Constant for the
math
method.
Provides a small and fast bytecode manipulation framework.
Provides an implementation for optional class, field and method attributes.
Provides some useful class and method adapters.
Provides support for type signatures.
Provides an ASM visitor that constructs a tree representation of the
classes it visits.
Provides a framework for static code analysis based on the asm.tree package.
Provides ASM visitors that can be useful for programming and
debugging purposes.
Provides attributes sub classes that can work with the ASMifier utility.
Provides
SAX 2.0 adapters for ASM
visitors to convert classes to and from XML.
Output stream to write result bytecode.
The internal name of the enclosing class of the class.
The name of the method that contains the class, or null if the
class is not enclosed in a method.
The descriptor of the method that contains the class, or null
if the class is not enclosed in a method.
The internal name of the class to which the inner class belongs (see
getInternalName
).
Constant used in
appendDescriptor
for method
parameter signatures, formatted in default Java notation (non-bytecode)
POP - static field in class org.objectweb.asm.
Opcodes pop() - method in class org.objectweb.asm.tree.analysis.
Frame Pops a value from the operand stack of this frame.
Generates a POP instruction.
Generates a POP2 instruction.
Processor is a command line tool that can be used for
bytecode waving directed by XSL transformation.
Generates the instruction to push the given value on the stack.
Generates the instruction to push the given value on the stack.
Generates the instruction to push the given value on the stack.
Generates the instruction to push the given value on the stack.
Generates the instruction to push the given value on the stack.
Pushes a value into the operand stack of this frame.
Generates the instruction to push the given value on the stack.
Puts a byte into this byte vector.
Puts an array of bytes into this byte vector.
Generates the instruction to store the top stack value in a non static
field.
Puts an int into this byte vector.
Puts a long into this byte vector.
Puts a short into this byte vector.
Generates the instruction to store the top stack value in a static field.
Puts an UTF8 string into this byte vector.
The print writer to be used to print the class.
The print writer to be used to print the class.
A
ClassVisitor
that generates SAX 2.0
events from the visited class.
A
MethodVisitor
that generates SAX 2.0 events from the visited
method.
A
ClassAdapter
that adds a serial version unique identifier to a
class if missing.
Sets the value of the given local variable.
Sets the opcode of this instruction.
Sets the opcode of this instruction.
Sets the opcode of this instruction.
Sets the opcode of this instruction.
Sets the opcode of this instruction.
Sets the opcode of this instruction.
Constant for the
math
method.
SHORT - static field in class org.objectweb.asm.
Type The sort of the short type.
Constant for the
math
method.
The signature of the class.
The signature of this local variable.
A type signature parser to make a signature visitor visit an existing
signature.
A visitor to visit a generic signature.
A signature visitor that generates signatures in string format.
An extended
BasicVerifier
that performs more precise verifications.
Debug information to compute the correspondance between source and
compiled elements of the class.
The name of the source file from which this class was compiled.
StackMapAttribute is used by CDLC preverifier.
Holds the state of the stack and local variables for a single execution
branch.
The first instruction corresponding to this line number.
The first instruction corresponding to the scope of this local variable
(inclusive).
Beginning of the exception handler's scope (inclusive).
Process notification of the start of an XML element being reached.
A
ClassAdapter
that merges clinit methods into a single one.
Generates the instruction to store the top stack value in the given method
argument.
Generates the instruction to store the top stack value in the given local
variable.
Constant for the
math
method.
Wildcard for a "super" type argument.
Collection of non-private constructors.
Collection of non-private methods.
Generates a SWAP instruction.
Generates the instructions to swap the top two stack values.
Tab for bytecode instructions.
Tab for table and lookup switch instructions.
Generates the instructions for a switch statement.
Generates the instructions for a switch statement.
A code generator for switch statements.
A node that represents a TABLESWITCH instruction.
Interprets a bytecode instruction with three arguments.
Interprets a bytecode instruction with three arguments.
Generates the instruction to throw an exception.
Generates the instructions to create and throw an exception.
Returns the bytecode of the class that was build with underneath class writer.
Returns the bytecode of the class that was build with this class writer.
Returns a string representation of this frame.
Returns a string representation of this label.
Returns the signature that was built by this signature writer.
Returns a string representation of this type.
An abstract trace visitor.
A
ClassVisitor
that prints a disassembled view of the classes it
visits.
A
FieldVisitor
that prints a disassembled view of the fields it
visits.
A
MethodVisitor
that prints a disassembled view of the methods it
visits.
ASM: a very small and fast Java bytecode manipulation framework
Copyright (c) 2000-2005 INRIA, France Telecom
All rights reserved.
A node that represents a try catch block.
The try catch blocks of this method.
The type of this attribute.
Internal name of the type of exceptions handled by the handler.
Constant used in
appendDescriptor
for field
or method return value signatures, formatted in default Java notation
(non-bytecode)
A node that represents a type instruction.
The field's initial value.
Value - interface org.objectweb.asm.tree.analysis.
Value An immutable symbolic value for semantic interpretation of bytecode.
The name value pairs of this annotation.
Index of the local variable to be incremented.
The operand of this instruction.
A node that represents a local variable instruction.
The runtime visible annotations of this class, field or method.
The runtime visible parameter annotations of this method.
Visits the header of the class.
Visits a primitive value of the annotation.
Visits a primitive value of the annotation.
Visits a primitive value of the annotation.
Visits a primitive value of the annotation.
Visits a primitive value of the annotation.
Prints the ASM code that generates the given annotation.
Visits an annotation of the class.
Visits an annotation of the field.
Visits an annotation of this class, field or method.
Visits an annotation of this method.
Prints a disassembled view of the given annotation.
Visits a nested annotation value of the annotation.
Visits a nested annotation value of the annotation.
Visits a nested annotation value of the annotation.
Visits a nested annotation value of the annotation.
Visits a nested annotation value of the annotation.
Visits the default value of this annotation interface method.
Visits an array value of the annotation.
Visits an array value of the annotation.
Visits an array value of the annotation.
Visits an array value of the annotation.
Visits an array value of the annotation.
Visits a signature corresponding to an array type.
Prints the ASM code that generates the given attribute.
Visits a non standard attribute of the class.
Visits a non standard attribute of the field.
Visits a non standard attribute of this class, field or method.
Visits a non standard attribute of this method.
Prints a disassembled view of the given attribute.
Visits a signature corresponding to a primitive type.
Visits the class bound of the last visited formal type parameter.
Starts the visit of a signature corresponding to a class or interface type.
Starts the visit of the method's code, if any (i.e.
Visits the end of the annotation.
Prints the ASM code to end the visit.
Visits the end of the annotation.
Visits the end of this class, field or method.
Visits the end of the class.
Visits the end of the annotation.
Visits the end of the field.
Visits the end of this class, field or method.
Visits the end of the method.
Visits the end of the annotation.
Ends the visit of a signature corresponding to a class or interface type.
Visits the end of the annotation.
Visits an enumeration value of the annotation.
Visits an enumeration value of the annotation.
Visits an enumeration value of the annotation.
Visits an enumeration value of the annotation.
Visits an enumeration value of the annotation.
Visits the type of a method exception.
Visits a field of the class.
Visits a field instruction.
Visits a formal type parameter.
Visits an IINC instruction.
Visits an IINC instruction.
Visits information about an inner class.
Visits a zero operand instruction.
Visits the type of an interface implemented by the class.
Visits an interface bound of the last visited formal type parameter.
Visits an instruction with a single int operand.
Visits a jump instruction.
Visits a LDC instruction.
Visits a line number declaration.
Visits a local variable declaration.
Visits a local variable declaration.
Visits a LOOKUPSWITCH instruction.
Visits the maximum stack size and the maximum number of local variables of
the method.
Visits the maximum stack size and the maximum number of local variables of
the method.
Visits a method of the class.
Visits a method instruction.
Visits a MULTIANEWARRAY instruction.
Visits the enclosing class of the class.
Visits an annotation of a parameter this method.
Visits the type of a method parameter.
Visits the return type of the method.
Visits the source of the class.
Visits the type of the super class.
Visits a TABLESWITCH instruction.
Visits a try catch block.
Visits an unbounded type argument of the last visited class or inner class
type.
Visits a type argument of the last visited class or inner class type.
Visits a type instruction.
Visits a signature corresponding to a type variable.
Visits a local variable instruction.
Visits a local variable instruction.
VOID - static field in class org.objectweb.asm.
Type The sort of the void type.