Home | History | Annotate | Download | only in asm
      1 package org.objectweb.asm;
      2 
      3 /**
      4  * A visitor to visit a Java method in which the bytecode positions of the
      5  * instructions and labels are already known.  When an object that has these
      6  * positions (for example, a {@link ClassReader}) accepts a
      7  * {@link MethodVisitor}, it should test whether the visitor happens to be a
      8  * {@link PrecompiledMethodVisitor}; if so, it should supply the positions
      9  * using {@link #visitCurrentPosition}.
     10  */
     11 public interface PrecompiledMethodVisitor extends MethodVisitor {
     12     /**
     13      * Informs the visitor of the current bytecode position in the method's
     14      * code.  This position applies to all labels and instructions visited
     15      * until {@link #visitCurrentPosition} is called again.
     16      */
     17     void visitCurrentPosition(int position);
     18 }
     19