Package de.thetaphi.forbiddenapis
Class ClassScanner.MethodScanner
java.lang.Object
org.objectweb.asm.MethodVisitor
de.thetaphi.forbiddenapis.ClassScanner.MethodScanner
- All Implemented Interfaces:
Reporter
- Enclosing class:
- ClassScanner
private final class ClassScanner.MethodScanner
extends org.objectweb.asm.MethodVisitor
implements Reporter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate final booleanprivate intprivate final org.objectweb.asm.commons.MethodFields inherited from class org.objectweb.asm.MethodVisitor
api, mv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancheckConstant(Object cst, boolean checkLambdaHandle) private booleancheckFieldAccess(String owner, String field) private booleancheckHandle(org.objectweb.asm.Handle handle, boolean checkLambdaHandle) private booleancheckMethodAccess(String owner, org.objectweb.asm.commons.Method method, boolean callIsVirtual) private Stringvoidvoidreport(String message, ViolationSeverity severity) org.objectweb.asm.AnnotationVisitorvisitAnnotation(String desc, boolean visible) voidvisitFieldInsn(int opcode, String owner, String name, String desc) org.objectweb.asm.AnnotationVisitorvisitInsnAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) voidvisitInvokeDynamicInsn(String name, String desc, org.objectweb.asm.Handle bsm, Object... bsmArgs) voidvisitLdcInsn(Object cst) voidvisitLineNumber(int lineNo, org.objectweb.asm.Label start) org.objectweb.asm.AnnotationVisitorvisitLocalVariableAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, org.objectweb.asm.Label[] start, org.objectweb.asm.Label[] end, int[] index, String desc, boolean visible) voidvisitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) voidvisitMultiANewArrayInsn(String desc, int dims) org.objectweb.asm.AnnotationVisitorvisitParameterAnnotation(int parameter, String desc, boolean visible) org.objectweb.asm.AnnotationVisitorvisitTryCatchAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) voidvisitTryCatchBlock(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type) org.objectweb.asm.AnnotationVisitorvisitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) voidvisitTypeInsn(int opcode, String type) Methods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitAnnotableParameterCount, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitParameter, visitTableSwitchInsn, visitVarInsn
-
Field Details
-
myself
private final org.objectweb.asm.commons.Method myself -
isDeprecated
private final boolean isDeprecated -
lineNo
private int lineNo -
currentLocation
-
-
Constructor Details
-
MethodScanner
-
-
Method Details
-
checkMethodAccess
private boolean checkMethodAccess(String owner, org.objectweb.asm.commons.Method method, boolean callIsVirtual) -
checkFieldAccess
-
checkHandle
private boolean checkHandle(org.objectweb.asm.Handle handle, boolean checkLambdaHandle) -
checkConstant
-
visitAnnotation
- Overrides:
visitAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitParameterAnnotation
public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) - Overrides:
visitParameterAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) - Overrides:
visitTypeAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitInsnAnnotation
public org.objectweb.asm.AnnotationVisitor visitInsnAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) - Overrides:
visitInsnAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitLocalVariableAnnotation
public org.objectweb.asm.AnnotationVisitor visitLocalVariableAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, org.objectweb.asm.Label[] start, org.objectweb.asm.Label[] end, int[] index, String desc, boolean visible) - Overrides:
visitLocalVariableAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitTryCatchAnnotation
public org.objectweb.asm.AnnotationVisitor visitTryCatchAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String desc, boolean visible) - Overrides:
visitTryCatchAnnotationin classorg.objectweb.asm.MethodVisitor
-
visitMethodInsn
- Overrides:
visitMethodInsnin classorg.objectweb.asm.MethodVisitor
-
visitFieldInsn
- Overrides:
visitFieldInsnin classorg.objectweb.asm.MethodVisitor
-
visitTypeInsn
- Overrides:
visitTypeInsnin classorg.objectweb.asm.MethodVisitor
-
visitMultiANewArrayInsn
- Overrides:
visitMultiANewArrayInsnin classorg.objectweb.asm.MethodVisitor
-
visitLdcInsn
- Overrides:
visitLdcInsnin classorg.objectweb.asm.MethodVisitor
-
visitInvokeDynamicInsn
public void visitInvokeDynamicInsn(String name, String desc, org.objectweb.asm.Handle bsm, Object... bsmArgs) - Overrides:
visitInvokeDynamicInsnin classorg.objectweb.asm.MethodVisitor
-
visitTryCatchBlock
public void visitTryCatchBlock(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type) - Overrides:
visitTryCatchBlockin classorg.objectweb.asm.MethodVisitor
-
getHumanReadableMethodSignature
-
visitLineNumber
public void visitLineNumber(int lineNo, org.objectweb.asm.Label start) - Overrides:
visitLineNumberin classorg.objectweb.asm.MethodVisitor
-
location
-
report
-