| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| private class | |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private ClassTracer. | |
| private final EnhancedClassData | |
| private static final int | |
| private final Util |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public MethodVisitor | visitMethod(final int access, final String name, final String desc, final String sig, final String[] exceptions)
Overrides org. Visits a method of the class. |
| current | back to summary |
|---|---|
| private ClassTracer. | |
| ecd | back to summary |
|---|---|
| private final EnhancedClassData ecd Hides org. | |
| MAX_EXTRA_STACK | back to summary |
|---|---|
| private static final int MAX_EXTRA_STACK | |
| util | back to summary |
|---|---|
| private final Util util | |
| ClassTracer | back to summary |
|---|---|
| public ClassTracer(final Util util, final EnhancedClassData ecd, final ClassVisitor cv) | |
| info | back to summary |
|---|---|
| private void info(final int level, final String msg) | |
| visitMethod | back to summary |
|---|---|
| public MethodVisitor visitMethod(final int access, final String name, final String desc, final String sig, final String[] exceptions) Overrides org. Doc from org. Visits a method of the class. This method must return a new
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ClassTracer. | |
| public static final ClassTracer. | |
| public static final ClassTracer. | |
| public static final ClassTracer. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ClassTracer. | |
| public static ClassTracer. |
| ACONST_NULL_BC | back to summary |
|---|---|
| public static final ClassTracer. | |
| ICONST_0_BC | back to summary |
|---|---|
| public static final ClassTracer. | |
| INFO_METHOD_CALL | back to summary |
|---|---|
| public static final ClassTracer. | |
| OTHER | back to summary |
|---|---|
| public static final ClassTracer. | |
| Input | back to summary |
|---|---|
| private Input() | |
| valueOf | back to summary |
|---|---|
| public static ClassTracer. | |
| values | back to summary |
|---|---|
| public static ClassTracer. | |
| Modifier and Type | Field and Description |
|---|---|
| private LocalVariableNode | |
| private LocalVariableNode | |
| private LocalVariableNode | |
| private final int | |
| private final Label | |
| private final LabelNode | |
| private final String | |
| private final Label | |
| private final LabelNode | |
| private final Label | |
| private final LabelNode | |
| private final int | |
| private final MethodVisitor | |
| private LocalVariablesSorter | |
| private final String | |
| private final Set | |
| private final Label | |
| private final LabelNode |
| Access | Constructor and Description |
|---|---|
| public | MonitoredMethodEnhancer(final int access, final String name, final String desc, final MethodVisitor mv)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public void | |
| public void | visitCode()
Overrides org. Starts the visit of the method's code, if any (i.e. non abstract method). |
| public void | visitFieldInsn(final int opcode, final String owner, final String name, final String desc)
Overrides org. Visits a field instruction. |
| public void | visitIincInsn(final int var, final int increment)
Overrides org. Visits an IINC instruction. |
| public void | visitInsn(final int opcode)
Overrides org. Visits a zero operand instruction. |
| public void | visitIntInsn(final int opcode, final int operand)
Overrides org. Visits an instruction with a single int operand. |
| public void | visitJumpInsn(final int opcode, final Label label)
Overrides org. Visits a jump instruction. |
| public void | visitLdcInsn(final Object cst)
Overrides org. Visits a LDC instruction. |
| public void | visitLookupSwitchInsn(final Label dflt, final int[] keys, final Label[] labels)
Overrides org. Visits a LOOKUPSWITCH instruction. |
| public void | visitMaxs(final int maxStack, final int maxLocals)
Overrides org. Visits the maximum stack size and the maximum number of local variables of the method. |
| public void | visitMethodInsn(final int opcode, final String owner, final String name, final String desc, final boolean isInterface)
Overrides org. Visits a method instruction. |
| public void | visitMultiANewArrayInsn(final String desc, final int dims)
Overrides org. Visits a MULTIANEWARRAY instruction. |
| public void | visitTableSwitchInsn(final int min, final int max, final Label dflt, final Label[] labels)
Overrides org. Visits a TABLESWITCH instruction. |
| public void | visitTypeInsn(final int opcode, final String type)
Overrides org. Visits a type instruction. |
| public void | visitVarInsn(final int opcode, final int var)
Overrides org. Visits a local variable instruction. |
| __exc | back to summary |
|---|---|
| private LocalVariableNode __exc | |
| __mm | back to summary |
|---|---|
| private LocalVariableNode __mm | |
| __result | back to summary |
|---|---|
| private LocalVariableNode __result | |
| access | back to summary |
|---|---|
| private final int access | |
| afterExcStore | back to summary |
|---|---|
| private final Label afterExcStore | |
| afterExcStoreNode | back to summary |
|---|---|
| private final LabelNode afterExcStoreNode | |
| desc | back to summary |
|---|---|
| private final String desc | |
| end | back to summary |
|---|---|
| private final Label end | |
| endNode | back to summary |
|---|---|
| private final LabelNode endNode | |
| excHandler | back to summary |
|---|---|
| private final Label excHandler | |
| excHandlerNode | back to summary |
|---|---|
| private final LabelNode excHandlerNode | |
| identVal | back to summary |
|---|---|
| private final int identVal | |
| lmv | back to summary |
|---|---|
| private final MethodVisitor lmv | |
| lvs | back to summary |
|---|---|
| private LocalVariablesSorter lvs | |
| name | back to summary |
|---|---|
| private final String name | |
| returnOpcodes | back to summary |
|---|---|
| private final Set<Integer> returnOpcodes | |
| start | back to summary |
|---|---|
| private final Label start | |
| startNode | back to summary |
|---|---|
| private final LabelNode startNode | |
| MonitoredMethodEnhancer | back to summary |
|---|---|
| public MonitoredMethodEnhancer(final int access, final String name, final String desc, final MethodVisitor mv) | |
| emitExceptionReport | back to summary |
|---|---|
| private void emitExceptionReport(final int excIndex) | |
| emitFinally | back to summary |
|---|---|
| private void emitFinally() | |
| setLocalVariablesSorter | back to summary |
|---|---|
| public void setLocalVariablesSorter(final LocalVariablesSorter lvs) | |
| 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).
| |
| visitFieldInsn | back to summary |
|---|---|
| public void visitFieldInsn(final int opcode, final String owner, final String name, final 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.
| |
| visitIincInsn | back to summary |
|---|---|
| public void visitIincInsn(final int var, final int increment) Overrides org. Doc from org. Visits an IINC instruction.
| |
| visitInsn | back to summary |
|---|---|
| public void visitInsn(final int opcode) Overrides org. Doc from org. Visits a zero operand instruction.
| |
| visitIntInsn | back to summary |
|---|---|
| public void visitIntInsn(final int opcode, final int operand) Overrides org. Doc from org. Visits an instruction with a single int operand.
| |
| visitJumpInsn | back to summary |
|---|---|
| public void visitJumpInsn(final int opcode, final Label label) Overrides org. Doc from org. Visits a jump instruction. A jump instruction is an instruction that may jump to another instruction.
| |
| visitLdcInsn | back to summary |
|---|---|
| public void visitLdcInsn(final 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
}
| |
| visitLookupSwitchInsn | back to summary |
|---|---|
| public void visitLookupSwitchInsn(final Label dflt, final int[] keys, final Label[] labels) Overrides org. Doc from org. Visits a LOOKUPSWITCH instruction.
| |
| visitMaxs | back to summary |
|---|---|
| public void visitMaxs(final int maxStack, final 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(final int opcode, final String owner, final String name, final String desc, final 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(final String desc, final int dims) Overrides org. Doc from org. Visits a MULTIANEWARRAY instruction.
| |
| visitTableSwitchInsn | back to summary |
|---|---|
| public void visitTableSwitchInsn(final int min, final int max, final Label dflt, final Label[] labels) Overrides org. Doc from org. Visits a TABLESWITCH instruction.
| |
| visitTypeInsn | back to summary |
|---|---|
| public void visitTypeInsn(final int opcode, final 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(final int opcode, final 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ClassTracer. | |
| public static final ClassTracer. | |
| public static final ClassTracer. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public abstract ClassTracer. | |
| public static ClassTracer. | |
| public static ClassTracer. |
| NORMAL | back to summary |
|---|---|
| public static final ClassTracer. | |
| NULL1 | back to summary |
|---|---|
| public static final ClassTracer. | |
| NULL2 | back to summary |
|---|---|
| public static final ClassTracer. | |
| State | back to summary |
|---|---|
| private State() | |
| info | back to summary |
|---|---|
| private static void info(final Util util, final int level, final String msg) | |
| transition | back to summary |
|---|---|
| public abstract ClassTracer. | |
| valueOf | back to summary |
|---|---|
| public static ClassTracer. | |
| values | back to summary |
|---|---|
| public static ClassTracer. | |