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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean frames
      true if frames should be added to a method.
      private TypeDescription instrumentedType
      The instrumented type.
      private java.lang.String name
      The name of the field.
      private int offset
      The base offset of the weaved method.
      private MethodDescription.SignatureToken token
      The target signature of the method declared by the JVM access controller.
      • Fields inherited from class org.objectweb.asm.MethodVisitor

        api, mv
    • 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

        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.
      • frames

        private final boolean frames
        true if 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 - true if frames should be added to a method.
    • 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