| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Util | |
| pack-priv final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| private void | |
| public AnnotationVisitor | visitAnnotation(String desc, boolean visible)
Overrides org. Visits an annotation of this method. |
| public AnnotationVisitor | visitAnnotationDefault()
Overrides org. Visits the default value of this annotation interface method. |
| public void | visitAttribute(Attribute attr)
Overrides org. Visits a non standard attribute of this method. |
| public void | visitCode()
Overrides org. Starts the visit of the method's code, if any (i.e. non abstract method). |
| public void | |
| public void | visitFieldInsn(int opcode, String owner, String name, String desc)
Overrides org. Visits a field instruction. |
| public void | visitFrame(int type, int nLocal, Object[] local, int nStack, Object[] stack)
Overrides org. Visits the current state of the local variables and operand stack elements. |
| public void | visitIincInsn(int var, int increment)
Overrides org. Visits an IINC instruction. |
| public void | visitInsn(int opcode)
Overrides org. Visits a zero operand instruction. |
| public void | visitIntInsn(int opcode, int operand)
Overrides org. Visits an instruction with a single int operand. |
| public void | visitJumpInsn(int opcode, Label label)
Overrides org. Visits a jump instruction. |
| public void | |
| public void | visitLdcInsn(Object cst)
Overrides org. Visits a LDC instruction. |
| public void | visitLineNumber(int line, Label start)
Overrides org. Visits a line number declaration. |
| public void | visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index)
Overrides org. Visits a local variable declaration. |
| public void | visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
Overrides org. Visits a LOOKUPSWITCH instruction. |
| public void | visitMaxs(int maxStack, int maxLocals)
Overrides org. Visits the maximum stack size and the maximum number of local variables of the method. |
| public void | visitMethodInsn(int opcode, String owner, String name, String desc, boolean isInterface)
Overrides org. Visits a method instruction. |
| public void | visitMultiANewArrayInsn(String desc, int dims)
Overrides org. Visits a MULTIANEWARRAY instruction. |
| public AnnotationVisitor | visitParameterAnnotation(int parameter, String desc, boolean visible)
Overrides org. Visits an annotation of a parameter this method. |
| public void | visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels)
Overrides org. Visits a TABLESWITCH instruction. |
| public void | visitTryCatchBlock(Label start, Label end, Label handler, String type)
Overrides org. Visits a try catch block. |
| public void | visitTypeInsn(int opcode, String type)
Overrides org. Visits a type instruction. |
| public void | visitVarInsn(int opcode, int var)
Overrides org. Visits a local variable instruction. |
| util | back to summary |
|---|---|
| pack-priv final Util util | |
| visitedLables | back to summary |
|---|---|
| pack-priv final Set<Label> visitedLables | |
| SimpleMethodTracer | back to summary |
|---|---|
| public SimpleMethodTracer(MethodVisitor mv, Util util) | |
| getFrameType | back to summary |
|---|---|
| private String getFrameType(int type) | |
| msg | back to summary |
|---|---|
| private void msg(String str) | |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(String desc, boolean visible) Overrides org. Doc from org. Visits an annotation of this method. | |
| visitAnnotationDefault | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotationDefault() Overrides org. Doc from org. Visits the default value of this annotation interface method. | |
| visitAttribute | back to summary |
|---|---|
| public void visitAttribute(Attribute attr) Overrides org. Doc from org. Visits a non standard attribute of this method. | |
| visitCode | back to summary |
|---|---|
| public void visitCode() Overrides org. Doc from org. Starts the visit of the method's code, if any (i.e. non abstract method). | |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. Doc from org. Visits the end of the method. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the method have been visited. | |
| visitFieldInsn | back to summary |
|---|---|
| public void visitFieldInsn(int opcode, String owner, String name, String desc) Overrides org. Doc from org. Visits a field instruction. A field instruction is an instruction that loads or stores the value of a field of an object. | |
| visitFrame | back to summary |
|---|---|
| public void visitFrame(int type, int nLocal, Object[] local, int nStack, Object[] stack) Overrides org. Doc from org. Visits the current state of the local variables and operand stack elements. This method must(*)
be called just before any instruction i that follows an unconditional branch
instruction such as GOTO or THROW, that is the target of a jump instruction, or that starts an
exception handler block. The visited types must describe the values of the local variables and
of the operand stack elements just before i is executed.
In both cases the first frame, corresponding to the method's parameters and access flags, is implicit and must not be visited. Also, it is illegal to visit two or more frames for the same code location (i.e., at least one instruction must be visited between two calls to visitFrame). | |
| visitIincInsn | back to summary |
|---|---|
| public void visitIincInsn(int var, int increment) Overrides org. Doc from org. Visits an IINC instruction. | |
| visitInsn | back to summary |
|---|---|
| public void visitInsn(int opcode) Overrides org. Doc from org. Visits a zero operand instruction. | |
| visitIntInsn | back to summary |
|---|---|
| public void visitIntInsn(int opcode, int operand) Overrides org. Doc from org. Visits an instruction with a single int operand. | |
| visitJumpInsn | back to summary |
|---|---|
| public void visitJumpInsn(int opcode, Label label) Overrides org. Doc from org. Visits a jump instruction. A jump instruction is an instruction that may jump to another instruction. | |
| visitLabel | back to summary |
|---|---|
| public void visitLabel(Label label) Overrides org. Doc from org. Visits a label. A label designates the instruction that will be visited just after it. | |
| visitLdcInsn | back to summary |
|---|---|
| public void visitLdcInsn(Object cst) Overrides org. Doc from org. Visits a LDC instruction. Note that new constant types may be added in future versions of the Java Virtual Machine. To easily detect new constant types, implementations of this method should check for unexpected constant types, like this:
if (cst instanceof Integer) {
// ...
} else if (cst instanceof Float) {
// ...
} else if (cst instanceof Long) {
// ...
} else if (cst instanceof Double) {
// ...
} else if (cst instanceof String) {
// ...
} else if (cst instanceof Type) {
int sort = ((Type) cst).getSort();
if (sort == Type.OBJECT) {
// ...
} else if (sort == Type.ARRAY) {
// ...
} else if (sort == Type.METHOD) {
// ...
} else {
// throw an exception
}
} else if (cst instanceof Handle) {
// ...
} else if (cst instanceof ConstantDynamic) {
// ...
} else {
// throw an exception
}
| |
| visitLineNumber | back to summary |
|---|---|
| public void visitLineNumber(int line, Label start) Overrides org. Doc from org. Visits a line number declaration. | |
| visitLocalVariable | back to summary |
|---|---|
| public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) Overrides org. Doc from org. Visits a local variable declaration. | |
| visitLookupSwitchInsn | back to summary |
|---|---|
| public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) Overrides org. Doc from org. Visits a LOOKUPSWITCH instruction. | |
| visitMaxs | back to summary |
|---|---|
| public void visitMaxs(int maxStack, int maxLocals) Overrides org. Doc from org. Visits the maximum stack size and the maximum number of local variables of the method. | |
| visitMethodInsn | back to summary |
|---|---|
| public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean isInterface) Overrides org. Doc from org. Visits a method instruction. A method instruction is an instruction that invokes a method. | |
| visitMultiANewArrayInsn | back to summary |
|---|---|
| public void visitMultiANewArrayInsn(String desc, int dims) Overrides org. Doc from org. Visits a MULTIANEWARRAY instruction. | |
| visitParameterAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) Overrides org. Doc from org. Visits an annotation of a parameter this method. | |
| visitTableSwitchInsn | back to summary |
|---|---|
| public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) Overrides org. Doc from org. Visits a TABLESWITCH instruction. | |
| visitTryCatchBlock | back to summary |
|---|---|
| public void visitTryCatchBlock(Label start, Label end, Label handler, String type) Overrides org. Doc from org. Visits a try catch block. | |
| visitTypeInsn | back to summary |
|---|---|
| public void visitTypeInsn(int opcode, String type) Overrides org. Doc from org. Visits a type instruction. A type instruction is an instruction that takes the internal name of
a class as parameter (see | |
| visitVarInsn | back to summary |
|---|---|
| public void visitVarInsn(int opcode, int var) Overrides org. Doc from org. Visits a local variable instruction. A local variable instruction is an instruction that loads or stores the value of a local variable. | |