org.sonar.java.bytecode.asm
Class AsmMethodVisitor
java.lang.Object
org.objectweb.asm.commons.EmptyVisitor
org.sonar.java.bytecode.asm.AsmMethodVisitor
- All Implemented Interfaces:
- org.objectweb.asm.AnnotationVisitor, org.objectweb.asm.ClassVisitor, org.objectweb.asm.FieldVisitor, org.objectweb.asm.MethodVisitor
public class AsmMethodVisitor
- extends org.objectweb.asm.commons.EmptyVisitor
Method Summary |
void |
visitEnd()
|
void |
visitFieldInsn(int opcode,
String owner,
String fieldName,
String fieldDescription)
|
void |
visitFrame(int type,
int nLocal,
Object[] local,
int nStack,
Object[] stack)
|
void |
visitIincInsn(int var,
int increment)
|
void |
visitInsn(int opcode)
|
void |
visitIntInsn(int opcode,
int operand)
|
void |
visitJumpInsn(int opcode,
org.objectweb.asm.Label label)
|
void |
visitLdcInsn(Object cst)
|
void |
visitLineNumber(int line,
org.objectweb.asm.Label start)
|
void |
visitLookupSwitchInsn(org.objectweb.asm.Label dflt,
int[] keys,
org.objectweb.asm.Label[] labels)
|
void |
visitMethodInsn(int opcode,
String owner,
String methodName,
String methodDescription)
|
void |
visitMultiANewArrayInsn(String desc,
int dims)
|
void |
visitTableSwitchInsn(int min,
int max,
org.objectweb.asm.Label dflt,
org.objectweb.asm.Label[] labels)
|
void |
visitTryCatchBlock(org.objectweb.asm.Label start,
org.objectweb.asm.Label end,
org.objectweb.asm.Label handler,
String exception)
|
void |
visitTypeInsn(int opcode,
String internalName)
|
void |
visitVarInsn(int opcode,
int var)
|
Methods inherited from class org.objectweb.asm.commons.EmptyVisitor |
visit, visit, visitAnnotation, visitAnnotation, visitAnnotationDefault, visitArray, visitAttribute, visitCode, visitEnum, visitField, visitInnerClass, visitLabel, visitLocalVariable, visitMaxs, visitMethod, visitOuterClass, visitParameterAnnotation, visitSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsmMethodVisitor
public AsmMethodVisitor(AsmMethod method,
AsmClassProvider asmClassProvider)
visitFieldInsn
public void visitFieldInsn(int opcode,
String owner,
String fieldName,
String fieldDescription)
- Specified by:
visitFieldInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitFieldInsn
in class org.objectweb.asm.commons.EmptyVisitor
visitMethodInsn
public void visitMethodInsn(int opcode,
String owner,
String methodName,
String methodDescription)
- Specified by:
visitMethodInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitMethodInsn
in class org.objectweb.asm.commons.EmptyVisitor
visitTryCatchBlock
public void visitTryCatchBlock(org.objectweb.asm.Label start,
org.objectweb.asm.Label end,
org.objectweb.asm.Label handler,
String exception)
- Specified by:
visitTryCatchBlock
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitTryCatchBlock
in class org.objectweb.asm.commons.EmptyVisitor
visitTypeInsn
public void visitTypeInsn(int opcode,
String internalName)
- Specified by:
visitTypeInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitTypeInsn
in class org.objectweb.asm.commons.EmptyVisitor
visitLineNumber
public void visitLineNumber(int line,
org.objectweb.asm.Label start)
- Specified by:
visitLineNumber
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitLineNumber
in class org.objectweb.asm.commons.EmptyVisitor
visitEnd
public void visitEnd()
- Specified by:
visitEnd
in interface org.objectweb.asm.AnnotationVisitor
- Specified by:
visitEnd
in interface org.objectweb.asm.ClassVisitor
- Specified by:
visitEnd
in interface org.objectweb.asm.FieldVisitor
- Specified by:
visitEnd
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitEnd
in class org.objectweb.asm.commons.EmptyVisitor
visitIincInsn
public void visitIincInsn(int var,
int increment)
- Specified by:
visitIincInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitIincInsn
in class org.objectweb.asm.commons.EmptyVisitor
visitFrame
public void visitFrame(int type,
int nLocal,
Object[] local,
int nStack,
Object[] stack)
- Specified by:
visitFrame
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitFrame
in class org.objectweb.asm.commons.EmptyVisitor
visitInsn
public void visitInsn(int opcode)
- Specified by:
visitInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitInsn
in class org.objectweb.asm.commons.EmptyVisitor
visitIntInsn
public void visitIntInsn(int opcode,
int operand)
- Specified by:
visitIntInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitIntInsn
in class org.objectweb.asm.commons.EmptyVisitor
visitJumpInsn
public void visitJumpInsn(int opcode,
org.objectweb.asm.Label label)
- Specified by:
visitJumpInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitJumpInsn
in class org.objectweb.asm.commons.EmptyVisitor
visitLdcInsn
public void visitLdcInsn(Object cst)
- Specified by:
visitLdcInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitLdcInsn
in class org.objectweb.asm.commons.EmptyVisitor
visitLookupSwitchInsn
public void visitLookupSwitchInsn(org.objectweb.asm.Label dflt,
int[] keys,
org.objectweb.asm.Label[] labels)
- Specified by:
visitLookupSwitchInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitLookupSwitchInsn
in class org.objectweb.asm.commons.EmptyVisitor
visitMultiANewArrayInsn
public void visitMultiANewArrayInsn(String desc,
int dims)
- Specified by:
visitMultiANewArrayInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitMultiANewArrayInsn
in class org.objectweb.asm.commons.EmptyVisitor
visitTableSwitchInsn
public void visitTableSwitchInsn(int min,
int max,
org.objectweb.asm.Label dflt,
org.objectweb.asm.Label[] labels)
- Specified by:
visitTableSwitchInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitTableSwitchInsn
in class org.objectweb.asm.commons.EmptyVisitor
visitVarInsn
public void visitVarInsn(int opcode,
int var)
- Specified by:
visitVarInsn
in interface org.objectweb.asm.MethodVisitor
- Overrides:
visitVarInsn
in class org.objectweb.asm.commons.EmptyVisitor
Copyright © 2009-2012 SonarSource. All Rights Reserved.