Class LocalVariableAwareMethodVisitor

  • Direct Known Subclasses:
    MemberSubstitution.SubstitutingMethodVisitor

    public class LocalVariableAwareMethodVisitor
    extends org.objectweb.asm.MethodVisitor
    A method visitor that traces the amount of used local variable slots.
    • Field Summary

      • Fields inherited from class org.objectweb.asm.MethodVisitor

        api, mv
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getFreeOffset()
      Returns the first offset that was observed to be free.
      void visitVarInsn​(int opcode, int offset)  
      • Methods inherited from class org.objectweb.asm.MethodVisitor

        visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn
    • Constructor Detail

      • LocalVariableAwareMethodVisitor

        public LocalVariableAwareMethodVisitor​(org.objectweb.asm.MethodVisitor methodVisitor,
                                               MethodDescription methodDescription)
        Creates a local variable aware method visitor.
        Parameters:
        methodVisitor - The method visitor to delegate to.
        methodDescription - The method being visited.
    • Method Detail

      • visitVarInsn

        public void visitVarInsn​(int opcode,
                                 int offset)
        Overrides:
        visitVarInsn in class org.objectweb.asm.MethodVisitor
      • getFreeOffset

        public int getFreeOffset()
        Returns the first offset that was observed to be free.
        Returns:
        The first offset that was observed to be free.