| java.lang.Object org.ejb3unit.asm.util.AbstractVisitor
All known Subclasses: org.ejb3unit.asm.util.ASMifierAnnotationVisitor, org.ejb3unit.asm.util.TraceAbstractVisitor, org.ejb3unit.asm.util.ASMifierAbstractVisitor,
AbstractVisitor | abstract public class AbstractVisitor (Code) | | An abstract visitor.
author: Eric Bruneton |
OPCODES | final public static String[] OPCODES(Code) | | The names of the Java Virtual Machine opcodes.
|
text | final public List text(Code) | | The text to be printed. Since the code of methods is not necessarily
visited in sequential order, one method after the other, but can be
interlaced (some instructions from method one, then some instructions
from method two, then some instructions from method one again...), it is
not possible to print the visited instructions directly to a sequential
stream. A class is therefore printed in a two steps process: a string
tree is constructed during the visit, and printed to a sequential stream
at the end of the visit. This string tree is stored in this field, as a
string list that can contain other string lists, which can themselves
contain other string lists, and so on.
|
appendString | public static void appendString(StringBuffer buf, String s)(Code) | | Appends a quoted string to a given buffer.
Parameters: buf - the buffer where the string must be added. Parameters: s - the string to be added. |
getText | public List getText()(Code) | | Returns the text constructed by this visitor.
the text constructed by this visitor. |
print | public void print(PrintWriter pw)(Code) | | Prints the text constructed by this visitor.
Parameters: pw - the print writer to be used. |
printList | void printList(PrintWriter pw, List l)(Code) | | Prints the given string tree.
Parameters: pw - the writer to be used to print the tree. Parameters: l - a string tree, i.e., a string list that can contain other stringlists, and so on recursively. |
|
|