< prev index next >

src/java.base/share/classes/jdk/internal/org/objectweb/asm/ClassReader.java

Print this page




 513         }
 514     }
 515 
 516     // ------------------------------------------------------------------------
 517     // Public methods
 518     // ------------------------------------------------------------------------
 519 
 520     /**
 521      * Makes the given visitor visit the Java class of this {@link ClassReader}
 522      * . This class is the one specified in the constructor (see
 523      * {@link #ClassReader(byte[]) ClassReader}).
 524      *
 525      * @param classVisitor
 526      *            the visitor that must visit this class.
 527      * @param flags
 528      *            option flags that can be used to modify the default behavior
 529      *            of this class. See {@link #SKIP_DEBUG}, {@link #EXPAND_FRAMES}
 530      *            , {@link #SKIP_FRAMES}, {@link #SKIP_CODE}.
 531      */
 532     public void accept(final ClassVisitor classVisitor, final int flags) {
 533         accept(classVisitor, new Attribute[0], flags);
 534     }
 535 
 536     /**
 537      * Makes the given visitor visit the Java class of this {@link ClassReader}.
 538      * This class is the one specified in the constructor (see
 539      * {@link #ClassReader(byte[]) ClassReader}).
 540      *
 541      * @param classVisitor
 542      *            the visitor that must visit this class.
 543      * @param attrs
 544      *            prototypes of the attributes that must be parsed during the
 545      *            visit of the class. Any attribute whose type is not equal to
 546      *            the type of one the prototypes will not be parsed: its byte
 547      *            array value will be passed unchanged to the ClassWriter.
 548      *            <i>This may corrupt it if this value contains references to
 549      *            the constant pool, or has syntactic or semantic links with a
 550      *            class element that has been transformed by a class adapter
 551      *            between the reader and the writer</i>.
 552      * @param flags
 553      *            option flags that can be used to modify the default behavior




 513         }
 514     }
 515 
 516     // ------------------------------------------------------------------------
 517     // Public methods
 518     // ------------------------------------------------------------------------
 519 
 520     /**
 521      * Makes the given visitor visit the Java class of this {@link ClassReader}
 522      * . This class is the one specified in the constructor (see
 523      * {@link #ClassReader(byte[]) ClassReader}).
 524      *
 525      * @param classVisitor
 526      *            the visitor that must visit this class.
 527      * @param flags
 528      *            option flags that can be used to modify the default behavior
 529      *            of this class. See {@link #SKIP_DEBUG}, {@link #EXPAND_FRAMES}
 530      *            , {@link #SKIP_FRAMES}, {@link #SKIP_CODE}.
 531      */
 532     public void accept(final ClassVisitor classVisitor, final int flags) {
 533         accept(classVisitor, Attribute.DEFAULT_ATTRIBUTE_PROTOS, flags);
 534     }
 535 
 536     /**
 537      * Makes the given visitor visit the Java class of this {@link ClassReader}.
 538      * This class is the one specified in the constructor (see
 539      * {@link #ClassReader(byte[]) ClassReader}).
 540      *
 541      * @param classVisitor
 542      *            the visitor that must visit this class.
 543      * @param attrs
 544      *            prototypes of the attributes that must be parsed during the
 545      *            visit of the class. Any attribute whose type is not equal to
 546      *            the type of one the prototypes will not be parsed: its byte
 547      *            array value will be passed unchanged to the ClassWriter.
 548      *            <i>This may corrupt it if this value contains references to
 549      *            the constant pool, or has syntactic or semantic links with a
 550      *            class element that has been transformed by a class adapter
 551      *            between the reader and the writer</i>.
 552      * @param flags
 553      *            option flags that can be used to modify the default behavior


< prev index next >