| java.lang.Object com.uwyn.rife.asm.util.AbstractVisitor
All known Subclasses: com.uwyn.rife.asm.util.ASMifierAbstractVisitor, com.uwyn.rife.asm.util.ASMifierAnnotationVisitor,
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. |
getDefaultAttributes | public static Attribute[] getDefaultAttributes()(Code) | | Returns the default
ASMifiable prototypes.
the default ASMifiable prototypes. |
getText | public List getText()(Code) | | Returns the text printed by this visitor.
the text printed by this visitor. |
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. |
|
|