|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.asm.MethodAdapter
org.objectweb.asm.commons.CodeSizeEvaluator
A MethodAdapter
that can be used to approximate method size.
Field Summary |
Fields inherited from class org.objectweb.asm.MethodAdapter |
mv |
Constructor Summary | |
CodeSizeEvaluator(MethodVisitor mv)
|
Method Summary | |
int |
getMaxSize()
|
int |
getMinSize()
|
void |
visitFieldInsn(int opcode,
String owner,
String name,
String desc)
Visits a field instruction. |
void |
visitIincInsn(int var,
int increment)
Visits an IINC instruction. |
void |
visitInsn(int opcode)
Visits a zero operand instruction. |
void |
visitIntInsn(int opcode,
int operand)
Visits an instruction with a single int operand. |
void |
visitJumpInsn(int opcode,
Label label)
Visits a jump instruction. |
void |
visitLdcInsn(Object cst)
Visits a LDC instruction. |
void |
visitLookupSwitchInsn(Label dflt,
int[] keys,
Label[] labels)
Visits a LOOKUPSWITCH instruction. |
void |
visitMethodInsn(int opcode,
String owner,
String name,
String desc)
Visits a method instruction. |
void |
visitMultiANewArrayInsn(String desc,
int dims)
Visits a MULTIANEWARRAY instruction. |
void |
visitTableSwitchInsn(int min,
int max,
Label dflt,
Label[] labels)
Visits a TABLESWITCH instruction. |
void |
visitTypeInsn(int opcode,
String type)
Visits a type instruction. |
void |
visitVarInsn(int opcode,
int var)
Visits a local variable instruction. |
Methods inherited from class org.objectweb.asm.MethodAdapter |
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitLabel, visitLineNumber, visitLocalVariable, visitMaxs, visitParameterAnnotation, visitTryCatchBlock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CodeSizeEvaluator(MethodVisitor mv)
Method Detail |
public int getMinSize()
public int getMaxSize()
public void visitInsn(int opcode)
MethodVisitor
visitInsn
in interface MethodVisitor
visitInsn
in class MethodAdapter
public void visitIntInsn(int opcode, int operand)
MethodVisitor
visitIntInsn
in interface MethodVisitor
visitIntInsn
in class MethodAdapter
public void visitVarInsn(int opcode, int var)
MethodVisitor
visitVarInsn
in interface MethodVisitor
visitVarInsn
in class MethodAdapter
public void visitTypeInsn(int opcode, String type)
MethodVisitor
visitTypeInsn
in interface MethodVisitor
visitTypeInsn
in class MethodAdapter
public void visitFieldInsn(int opcode, String owner, String name, String desc)
MethodVisitor
visitFieldInsn
in interface MethodVisitor
visitFieldInsn
in class MethodAdapter
public void visitMethodInsn(int opcode, String owner, String name, String desc)
MethodVisitor
visitMethodInsn
in interface MethodVisitor
visitMethodInsn
in class MethodAdapter
public void visitJumpInsn(int opcode, Label label)
MethodVisitor
visitJumpInsn
in interface MethodVisitor
visitJumpInsn
in class MethodAdapter
public void visitLdcInsn(Object cst)
MethodVisitor
visitLdcInsn
in interface MethodVisitor
visitLdcInsn
in class MethodAdapter
public void visitIincInsn(int var, int increment)
MethodVisitor
visitIincInsn
in interface MethodVisitor
visitIincInsn
in class MethodAdapter
public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels)
MethodVisitor
visitTableSwitchInsn
in interface MethodVisitor
visitTableSwitchInsn
in class MethodAdapter
public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
MethodVisitor
visitLookupSwitchInsn
in interface MethodVisitor
visitLookupSwitchInsn
in class MethodAdapter
public void visitMultiANewArrayInsn(String desc, int dims)
MethodVisitor
visitMultiANewArrayInsn
in interface MethodVisitor
visitMultiANewArrayInsn
in class MethodAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |