src/share/classes/jdk/internal/org/objectweb/asm/MethodVisitor.java

Print this page

        

*** 61,73 **** /** * A visitor to visit a Java method. The methods of this class must be * called in the following order: [ <tt>visitAnnotationDefault</tt> ] ( * <tt>visitAnnotation</tt> | <tt>visitParameterAnnotation</tt> | * <tt>visitAttribute</tt> )* [ <tt>visitCode</tt> ( <tt>visitFrame</tt> | ! * <tt>visit</tt><i>X</i>Insn</tt> | <tt>visitLabel</tt> | <tt>visitTryCatchBlock</tt> | * <tt>visitLocalVariable</tt> | <tt>visitLineNumber</tt> )* <tt>visitMaxs</tt> ] ! * <tt>visitEnd</tt>. In addition, the <tt>visit</tt><i>X</i>Insn</tt> * and <tt>visitLabel</tt> methods must be called in the sequential order of * the bytecode instructions of the visited code, <tt>visitTryCatchBlock</tt> * must be called <i>before</i> the labels passed as arguments have been * visited, and the <tt>visitLocalVariable</tt> and <tt>visitLineNumber</tt> * methods must be called <i>after</i> the labels passed as arguments have been --- 61,73 ---- /** * A visitor to visit a Java method. The methods of this class must be * called in the following order: [ <tt>visitAnnotationDefault</tt> ] ( * <tt>visitAnnotation</tt> | <tt>visitParameterAnnotation</tt> | * <tt>visitAttribute</tt> )* [ <tt>visitCode</tt> ( <tt>visitFrame</tt> | ! * <tt>visit<i>X</i>Insn</tt> | <tt>visitLabel</tt> | <tt>visitTryCatchBlock</tt> | * <tt>visitLocalVariable</tt> | <tt>visitLineNumber</tt> )* <tt>visitMaxs</tt> ] ! * <tt>visitEnd</tt>. In addition, the <tt>visit<i>X</i>Insn</tt> * and <tt>visitLabel</tt> methods must be called in the sequential order of * the bytecode instructions of the visited code, <tt>visitTryCatchBlock</tt> * must be called <i>before</i> the labels passed as arguments have been * visited, and the <tt>visitLocalVariable</tt> and <tt>visitLineNumber</tt> * methods must be called <i>after</i> the labels passed as arguments have been
*** 214,224 **** * <code>local</code> elements contains values representing added types).</li> * <li>{@link Opcodes#F_CHOP} representing frame with current locals are * the same as the locals in the previous frame, except that the last 1-3 * locals are absent and with the empty stack (<code>nLocals</code> is 1, * 2 or 3). </li> <li>{@link Opcodes#F_FULL} representing complete frame ! * data.</li> </li> </ul> * * @param type the type of this stack map frame. Must be * {@link Opcodes#F_NEW} for expanded frames, or * {@link Opcodes#F_FULL}, {@link Opcodes#F_APPEND}, * {@link Opcodes#F_CHOP}, {@link Opcodes#F_SAME} or --- 214,224 ---- * <code>local</code> elements contains values representing added types).</li> * <li>{@link Opcodes#F_CHOP} representing frame with current locals are * the same as the locals in the previous frame, except that the last 1-3 * locals are absent and with the empty stack (<code>nLocals</code> is 1, * 2 or 3). </li> <li>{@link Opcodes#F_FULL} representing complete frame ! * data.</li> </ul> * * @param type the type of this stack map frame. Must be * {@link Opcodes#F_NEW} for expanded frames, or * {@link Opcodes#F_FULL}, {@link Opcodes#F_APPEND}, * {@link Opcodes#F_CHOP}, {@link Opcodes#F_SAME} or