ClassVisitorpublic interface ClassVisitor A visitor to visit a Java class. The methods of this interface must be called
in the following order: visit (visitField |
visitMethod | visitInnerClass | visitAttribute)*
visitEnd. |
Methods Summary |
---|
public void | visit(int version, int access, java.lang.String name, java.lang.String superName, java.lang.String[] interfaces, java.lang.String sourceFile)Visits the header of the class.
| public void | visitAttribute(oracle.toplink.libraries.asm.Attribute attr)Visits a non standard attribute of the class. This method must visit only
the first attribute in the given attribute list.
| public void | visitEnd()Visits the end of the class. This method, which is the last one to be
called, is used to inform the visitor that all the fields and methods of
the class have been visited.
| public void | visitField(int access, java.lang.String name, java.lang.String desc, java.lang.Object value, oracle.toplink.libraries.asm.Attribute attrs)Visits a field of the class.
| public void | visitInnerClass(java.lang.String name, java.lang.String outerName, java.lang.String innerName, int access)Visits information about an inner class. This inner class is not
necessarily a member of the class being visited.
| public oracle.toplink.libraries.asm.CodeVisitor | visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String[] exceptions, oracle.toplink.libraries.asm.Attribute attrs)Visits a method of the class. This method must return a new
{@link CodeVisitor CodeVisitor} instance (or null) each time it
is called, i.e., it should not return a previously returned visitor.
|
|