Package es.bsc.dataclay.util.tools.java
Class DataClayMethodVisitor
- java.lang.Object
-
- org.objectweb.asm.MethodVisitor
-
- es.bsc.dataclay.util.tools.java.DataClayMethodVisitor
-
public final class DataClayMethodVisitor extends org.objectweb.asm.MethodVisitor
DataClay Method analyzer.
-
-
Constructor Summary
Constructors Constructor Description DataClayMethodVisitor(DataClayClassVisitor thecv, Operation newoperation, ClassLoader newclassLoader)
Constructs a new method visitor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getStubMethodNumber(String className, String opNameAndSignature)
Get the number of a stub method identified by signature provided and specified in stub information.org.objectweb.asm.AnnotationVisitor
visitAnnotation(String desc, boolean visible)
void
visitFieldInsn(int opcode, String owner, String name, String desc)
void
visitMethodInsn(int opcode, String owner, String name, String desc)
void
visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf)
void
visitParameter(String name, int access)
-
Methods inherited from class org.objectweb.asm.MethodVisitor
visitAnnotableParameterCount, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
-
-
-
-
Constructor Detail
-
DataClayMethodVisitor
public DataClayMethodVisitor(DataClayClassVisitor thecv, Operation newoperation, ClassLoader newclassLoader)
Constructs a new method visitor- Parameters:
thecv
- Class visitor. For using parsing utility functions.newoperation
- Operation in which to add information of methods.newclassLoader
- Class loader containing analyzed classes.
-
-
Method Detail
-
visitFieldInsn
public void visitFieldInsn(int opcode, String owner, String name, String desc)
- Overrides:
visitFieldInsn
in classorg.objectweb.asm.MethodVisitor
-
visitMethodInsn
public void visitMethodInsn(int opcode, String owner, String name, String desc)
- Overrides:
visitMethodInsn
in classorg.objectweb.asm.MethodVisitor
-
getStubMethodNumber
public int getStubMethodNumber(String className, String opNameAndSignature)
Get the number of a stub method identified by signature provided and specified in stub information.- Parameters:
className
- Name of classopNameAndSignature
- Name and Signature of the operation- Returns:
- the number of a stub method identified by signature provided and specified in stub information.
-
visitMethodInsn
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf)
- Overrides:
visitMethodInsn
in classorg.objectweb.asm.MethodVisitor
-
visitParameter
public void visitParameter(String name, int access)
- Overrides:
visitParameter
in classorg.objectweb.asm.MethodVisitor
-
visitAnnotation
public org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
- Overrides:
visitAnnotation
in classorg.objectweb.asm.MethodVisitor
-
-