Package net.bytebuddy.build
Class AccessControllerPlugin.AccessControlWrapper.PrefixingMethodVisitor
- java.lang.Object
-
- org.objectweb.asm.MethodVisitor
-
- net.bytebuddy.build.AccessControllerPlugin.AccessControlWrapper.PrefixingMethodVisitor
-
- Enclosing class:
- AccessControllerPlugin.AccessControlWrapper
protected static class AccessControllerPlugin.AccessControlWrapper.PrefixingMethodVisitor extends org.objectweb.asm.MethodVisitorA method visitor to implement a weaved method to dispatch to anjava.security.AccessController, if available.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanframestrueif frames should be added to a method.private TypeDescriptioninstrumentedTypeThe instrumented type.private java.lang.StringnameThe name of the field.private intoffsetThe base offset of the weaved method.private MethodDescription.SignatureTokentokenThe target signature of the method declared by the JVM access controller.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPrefixingMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, MethodDescription.SignatureToken token, java.lang.String name, int offset, boolean frames)Creates a new prefixing method visitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisitCode()voidvisitMaxs(int stackSize, int localVariableLength)-
Methods inherited from class org.objectweb.asm.MethodVisitor
visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
-
-
-
-
Field Detail
-
instrumentedType
private final TypeDescription instrumentedType
The instrumented type.
-
token
private final MethodDescription.SignatureToken token
The target signature of the method declared by the JVM access controller.
-
name
private final java.lang.String name
The name of the field.
-
offset
private final int offset
The base offset of the weaved method.
-
frames
private final boolean frames
trueif frames should be added to a method.
-
-
Constructor Detail
-
PrefixingMethodVisitor
protected PrefixingMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor, TypeDescription instrumentedType, MethodDescription.SignatureToken token, java.lang.String name, int offset, boolean frames)Creates a new prefixing method visitor.- Parameters:
methodVisitor- The method visitor to write to.instrumentedType- The instrumented type.token- The target signature of the method declared by the JVM access controller.name- The name of the field.offset- The base offset of the instrumented method.frames-trueif frames should be added to a method.
-
-