Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.objectweb.asm.tree.MemberNode
org.objectweb.asm.tree.MethodNode
Field Summary | |
int | |
Object |
|
String | |
List |
|
List |
|
List[] |
|
List |
|
List |
|
int |
|
int |
|
String |
|
String |
|
List |
|
List[] |
|
Fields inherited from class org.objectweb.asm.tree.MemberNode | |
attrs , invisibleAnnotations , visibleAnnotations |
Constructor Summary | |
|
Method Summary | |
void |
|
AnnotationVisitor | |
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
AnnotationVisitor |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.objectweb.asm.tree.MemberNode | |
visitAnnotation , visitAttribute , visitEnd |
public int access
The method's access flags (seeOpcodes
). This field also indicates if the method is synthetic and/or deprecated.
public Object annotationDefault
The default value of this annotation interface method. This field must be aByte
,Boolean
,Character
,Short
,Integer
,Long
,Float
,Double
,String
orType
, or an two elements String array (for enumeration values), aAnnotationNode
, or aList
of values of one of the preceding types. May be null.
public final List exceptions
The internal names of the method's exception classes (seegetInternalName
). This list is a list ofString
objects.
public final List instructions
The instructions of this method. This list is a list ofAbstractInsnNode
objects.
public List[] invisibleParameterAnnotations
The runtime invisible parameter annotations of this method. These lists are lists ofAnnotationNode
objects. May be null.
public List lineNumbers
The line numbers of this method. This list is a list ofLineNumberNode
objects. May be null
public List localVariables
The local variables of this method. This list is a list ofLocalVariableNode
objects. May be null
public int maxLocals
The maximum number of local variables of this method.
public int maxStack
The maximum stack size of this method.
public String name
The method's name.
public String signature
The method's signature. May be null.
public final List tryCatchBlocks
The try catch blocks of this method. This list is a list ofTryCatchBlockNode
objects.
public List[] visibleParameterAnnotations
The runtime visible parameter annotations of this method. These lists are lists ofAnnotationNode
objects. May be null.
public MethodNode(int access, String name, String desc, String signature, String[] exceptions)
Constructs a newMethodNode
.
- Parameters:
access
- the method's access flags (seeOpcodes
). This parameter also indicates if the method is synthetic and/or deprecated.name
- the method's name.desc
- the method's descriptor (seeType
).signature
- the method's signature. May be null.exceptions
- the internal names of the method's exception classes (seegetInternalName
). May be null.
public void accept(ClassVisitor cv)
Makes the given class visitor visit this method.
- Parameters:
cv
- a class visitor.
public AnnotationVisitor visitAnnotationDefault()
- Specified by:
- visitAnnotationDefault in interface MethodVisitor
public void visitFieldInsn(int opcode, String owner, String name, String desc)
- Specified by:
- visitFieldInsn in interface MethodVisitor
public void visitIincInsn(int var, int increment)
- Specified by:
- visitIincInsn in interface MethodVisitor
public void visitIntInsn(int opcode, int operand)
- Specified by:
- visitIntInsn in interface MethodVisitor
public void visitJumpInsn(int opcode, Label label)
- Specified by:
- visitJumpInsn in interface MethodVisitor
public void visitLdcInsn(Object cst)
- Specified by:
- visitLdcInsn in interface MethodVisitor
public void visitLineNumber(int line, Label start)
- Specified by:
- visitLineNumber in interface MethodVisitor
public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index)
- Specified by:
- visitLocalVariable in interface MethodVisitor
public void visitLookupSwitchInsn(Label dflt, keys[] , labels[] )
- Specified by:
- visitLookupSwitchInsn in interface MethodVisitor
public void visitMaxs(int maxStack, int maxLocals)
- Specified by:
- visitMaxs in interface MethodVisitor
public void visitMethodInsn(int opcode, String owner, String name, String desc)
- Specified by:
- visitMethodInsn in interface MethodVisitor
public void visitMultiANewArrayInsn(String desc, int dims)
- Specified by:
- visitMultiANewArrayInsn in interface MethodVisitor
public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible)
- Specified by:
- visitParameterAnnotation in interface MethodVisitor
public void visitTableSwitchInsn(int min, int max, Label dflt, labels[] )
- Specified by:
- visitTableSwitchInsn in interface MethodVisitor
public void visitTryCatchBlock(Label start, Label end, Label handler, String type)
- Specified by:
- visitTryCatchBlock in interface MethodVisitor
public void visitTypeInsn(int opcode, String desc)
- Specified by:
- visitTypeInsn in interface MethodVisitor
public void visitVarInsn(int opcode, int var)
- Specified by:
- visitVarInsn in interface MethodVisitor