Class AccessControllerPlugin.AccessControlWrapper.PrefixingMethodVisitor

  • Enclosing class:
    AccessControllerPlugin.AccessControlWrapper

    protected static class AccessControllerPlugin.AccessControlWrapper.PrefixingMethodVisitor
    extends org.objectweb.asm.MethodVisitor
    A method visitor to implement a weaved method to dispatch to an java.security.AccessController, if available.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void visitCode()  
      void visitMaxs​(int stackSize, int localVariableLength)  
      • Methods inherited from class org.objectweb.asm.MethodVisitor

        getDelegate, 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • instrumentedType

        private final TypeDescription instrumentedType
        The instrumented type.
      • name

        private final java.lang.String name
        The name of the field.
      • offset

        private final int offset
        The base offset of the weaved method.
    • Constructor Detail

      • PrefixingMethodVisitor

        protected PrefixingMethodVisitor​(org.objectweb.asm.MethodVisitor methodVisitor,
                                         TypeDescription instrumentedType,
                                         MethodDescription.SignatureToken token,
                                         java.lang.String name,
                                         int offset,
                                         Implementation.Context.FrameGeneration frameGeneration)
        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.
        frameGeneration - Indicates the frame generation mode to apply.
    • Method Detail

      • visitCode

        public void visitCode()
        Overrides:
        visitCode in class org.objectweb.asm.MethodVisitor
      • visitMaxs

        public void visitMaxs​(int stackSize,
                              int localVariableLength)
        Overrides:
        visitMaxs in class org.objectweb.asm.MethodVisitor