|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.asm.MethodAdapter
de.uka.ipd.sdq.ByCounter.parsing.MethodPreInstrumentationParser
public final class MethodPreInstrumentationParser
MethodPreInstrumentationParser implements a quick method visiting pass for finding method invocations and array constructions. The knowledge obtained from this pass can be used to count method invocations more efficiently using simple int counters and 'iinc' instructions. In addition to that, array type and dimension information can be obtained.
Constructor Summary | |
---|---|
MethodPreInstrumentationParser(org.objectweb.asm.MethodVisitor mv,
int access,
java.lang.String owner,
java.lang.String name,
java.lang.String desc,
MethodCountMethodAdapter methodCountMethodAdapter,
InstrumentationParameters parameters,
InstrumentationState state,
MethodDescriptor method)
|
Method Summary | |
---|---|
AdditionalOpcodeInformation |
getAdditionalOpcodeInformation()
Get the list containing all method signatures that were called in the visited method. |
void |
visitEnd()
Visiting the end of the method allows to collect the needed method invocation information. |
Methods inherited from class org.objectweb.asm.MethodAdapter |
---|
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodPreInstrumentationParser(org.objectweb.asm.MethodVisitor mv, int access, java.lang.String owner, java.lang.String name, java.lang.String desc, MethodCountMethodAdapter methodCountMethodAdapter, InstrumentationParameters parameters, InstrumentationState state, MethodDescriptor method)
access
- As from ClassVisitor.name
- As from ClassVisitor.desc
- As from ClassVisitor.methodCountMethodAdapter
- MethodCountMethodAdapter
that needs the methodparameters
- Parameters for instrumentation. Also contains information that decides what is done before instrumetation.
invocation information for proper instrumentation.method
- The currently analysed method.Method Detail |
---|
public AdditionalOpcodeInformation getAdditionalOpcodeInformation()
owner + "." + name + desc
. Signatures are specific to
the object they are invoked on. This means that a certain methods
may be more than once in the array. However, their signatures differ,
as the owner property differs.MethodDescriptor.getCanonicalMethodName()
public void visitEnd()
visitEnd
in interface org.objectweb.asm.MethodVisitor
visitEnd
in class org.objectweb.asm.MethodAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |