Class ClassParserUsingASM.ClassParserMethodVisitor
java.lang.Object
org.objectweb.asm.MethodVisitor
edu.umd.cs.findbugs.classfile.engine.AbstractMethodVisitor
edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.ClassParserMethodVisitor
- Enclosing class:
ClassParserUsingASM
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
(package private) String
(package private) boolean
(package private) boolean
(package private) String
(package private) String
(package private) String
private final TreeSet
<ClassDescriptor> private final ClassNameAndSuperclassInfo.Builder
(package private) int
(package private) ClassParserUsingASM.IdentityMethodState
(package private) boolean
(package private) boolean
(package private) boolean
(package private) HashSet
<org.objectweb.asm.Label> private final MethodInfo.Builder
(package private) int
private final String
private final String
private int
(package private) int
(package private) ClassParserUsingASM.ParameterLoadState
(package private) boolean
(package private) boolean
(package private) boolean
(package private) boolean
(package private) boolean
(package private) boolean
(package private) boolean
(package private) ClassParserUsingASM.StubState
Fields inherited from class org.objectweb.asm.MethodVisitor
api, mv
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ClassParserMethodVisitor
(TreeSet<ClassDescriptor> calledClassSet, MethodInfo.Builder mBuilder, String methodName, int access, String methodDesc, ClassNameAndSuperclassInfo.Builder cBuilder) -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
isStatic()
void
private void
sawBranchTo
(org.objectweb.asm.Label label) void
visitAnnotableParameterCount
(int parameterCount, boolean visible) org.objectweb.asm.AnnotationVisitor
visitAnnotation
(String desc, boolean visible) void
visitEnd()
void
visitFieldInsn
(int opcode, String owner, String name, String desc) void
visitInsn
(int opcode) void
visitInvokeDynamicInsn
(String name, String desc, org.objectweb.asm.Handle bsm, Object... bsmArgs) void
visitJumpInsn
(int opcode, org.objectweb.asm.Label label) void
visitLabel
(org.objectweb.asm.Label label) void
visitLdcInsn
(Object cst) void
visitLocalVariable
(String name, String desc, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int index) void
visitLookupSwitchInsn
(org.objectweb.asm.Label dflt, int[] keys, org.objectweb.asm.Label[] labels) void
visitMethodInsn
(int opcode, String owner, String name, String desc, boolean itf) org.objectweb.asm.AnnotationVisitor
visitParameterAnnotation
(int parameter, String desc, boolean visible) void
void
visitTableSwitchInsn
(int min, int max, org.objectweb.asm.Label dflt, org.objectweb.asm.Label... labels) org.objectweb.asm.AnnotationVisitor
visitTypeAnnotation
(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) void
visitVarInsn
(int opcode, int var) Methods inherited from class edu.umd.cs.findbugs.classfile.engine.AbstractMethodVisitor
visitAnnotationDefault, visitAttribute, visitCode, visitFrame, visitIincInsn, visitIntInsn, visitLineNumber, visitMaxs, visitMultiANewArrayInsn, visitTryCatchBlock, visitTypeInsn
Methods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitInsnAnnotation, visitLocalVariableAnnotation, visitMethodInsn, visitParameter, visitTryCatchAnnotation
-
Field Details
-
calledClassSet
-
mBuilder
-
methodName
-
access
private final int access -
methodDesc
-
cBuilder
-
sawReturn
boolean sawReturn -
sawNormalThrow
boolean sawNormalThrow -
sawUnsupportedThrow
boolean sawUnsupportedThrow -
sawSystemExit
boolean sawSystemExit -
sawBranch
boolean sawBranch -
sawBackBranch
boolean sawBackBranch -
methodCallCount
int methodCallCount -
fieldInstructionCount
int fieldInstructionCount -
sawStubThrow
boolean sawStubThrow -
justSawInitializationOfUnsupportedOperationException
boolean justSawInitializationOfUnsupportedOperationException -
isBridge
boolean isBridge -
bridgedMethodSignature
String bridgedMethodSignature -
identityState
ClassParserUsingASM.IdentityMethodState identityState -
parameterLoadState
ClassParserUsingASM.ParameterLoadState parameterLoadState -
parameterForLoadState
int parameterForLoadState -
stubState
ClassParserUsingASM.StubState stubState -
isAccessMethod
boolean isAccessMethod -
accessOwner
String accessOwner -
accessName
String accessName -
accessDesc
String accessDesc -
accessForField
boolean accessForField -
accessIsStatic
boolean accessIsStatic -
labelsSeen
HashSet<org.objectweb.asm.Label> labelsSeen -
parameterCount
private int parameterCount
-
-
Constructor Details
-
ClassParserMethodVisitor
private ClassParserMethodVisitor(TreeSet<ClassDescriptor> calledClassSet, MethodInfo.Builder mBuilder, String methodName, int access, String methodDesc, ClassNameAndSuperclassInfo.Builder cBuilder) - Parameters:
calledClassSet
-mBuilder
-methodName
-access
-methodDesc
-cBuilder
-
-
-
Method Details
-
isStatic
boolean isStatic() -
visitLocalVariable
public void visitLocalVariable(String name, String desc, String signature, org.objectweb.asm.Label start, org.objectweb.asm.Label end, int index) - Overrides:
visitLocalVariable
in classAbstractMethodVisitor
-
visitLdcInsn
- Overrides:
visitLdcInsn
in classAbstractMethodVisitor
-
visitInsn
public void visitInsn(int opcode) - Overrides:
visitInsn
in classAbstractMethodVisitor
-
resetState
public void resetState() -
visitSomeInsn
public void visitSomeInsn()- Overrides:
visitSomeInsn
in classAbstractMethodVisitor
-
visitVarInsn
public void visitVarInsn(int opcode, int var) - Overrides:
visitVarInsn
in classAbstractMethodVisitor
-
visitFieldInsn
- Overrides:
visitFieldInsn
in classAbstractMethodVisitor
-
visitAnnotation
- Overrides:
visitAnnotation
in classorg.objectweb.asm.MethodVisitor
-
visitInvokeDynamicInsn
public void visitInvokeDynamicInsn(String name, String desc, org.objectweb.asm.Handle bsm, Object... bsmArgs) - Overrides:
visitInvokeDynamicInsn
in classorg.objectweb.asm.MethodVisitor
-
visitMethodInsn
- Overrides:
visitMethodInsn
in classAbstractMethodVisitor
-
sawBranchTo
private void sawBranchTo(org.objectweb.asm.Label label) -
visitJumpInsn
public void visitJumpInsn(int opcode, org.objectweb.asm.Label label) - Overrides:
visitJumpInsn
in classAbstractMethodVisitor
-
visitLookupSwitchInsn
public void visitLookupSwitchInsn(org.objectweb.asm.Label dflt, int[] keys, org.objectweb.asm.Label[] labels) - Overrides:
visitLookupSwitchInsn
in classAbstractMethodVisitor
-
visitTableSwitchInsn
public void visitTableSwitchInsn(int min, int max, org.objectweb.asm.Label dflt, org.objectweb.asm.Label... labels) - Overrides:
visitTableSwitchInsn
in classAbstractMethodVisitor
-
visitLabel
public void visitLabel(org.objectweb.asm.Label label) - Overrides:
visitLabel
in classAbstractMethodVisitor
-
visitEnd
public void visitEnd()- Overrides:
visitEnd
in classorg.objectweb.asm.MethodVisitor
-
visitAnnotableParameterCount
public void visitAnnotableParameterCount(int parameterCount, boolean visible) - Overrides:
visitAnnotableParameterCount
in classorg.objectweb.asm.MethodVisitor
-
visitParameterAnnotation
public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) - Overrides:
visitParameterAnnotation
in classorg.objectweb.asm.MethodVisitor
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) - Overrides:
visitTypeAnnotation
in classorg.objectweb.asm.MethodVisitor
-