org.tromer.jie
Class PiggybackableNode
java.lang.Object
|
+--org.tromer.jie.PiggybackableNode
- Direct Known Subclasses:
- AdditiveExpression, AllocationExpression, AndExpression, ArgumentList, Arguments, ArrayDimsAndInits, ArrayInitializer, AssignmentOperator, Block, BlockStatement, BooleanLiteral, BreakStatement, CastExpression, CastLookahead, ClassBody, ClassBodyDeclaration, ClassDeclaration, CompilationUnit, ConditionalAndExpression, ConditionalAndExpressionWrapper, ConditionalExpression, ConditionalOrExpression, ConstructorDeclaration, ContinueStatement, DoStatement, EmptyStatement, EqualityExpression, ExclusiveOrExpression, ExplicitConstructorInvocation, Expression, FieldDeclaration, ForInit, FormalParameter, FormalParameters, ForStatement, ForUpdate, IfStatement, ImportDeclaration, InclusiveOrExpression, Initializer, InstanceOfExpression, InterfaceDeclaration, InterfaceMemberDeclaration, LabeledStatement, Literal, LocalVariableDeclaration, MethodDeclaration, MethodDeclarationLookahead, MethodDeclarator, MultiplicativeExpression, Name, NameList, NestedClassDeclaration, NestedInterfaceDeclaration, NodeChoice, NodeList, NodeListOptional, NodeOptional, NodeSequence, NodeToken, NullLiteral, PackageDeclaration, PostfixExpression, PreDecrementExpression, PreIncrementExpression, PrimaryExpression, PrimaryPrefix, PrimarySuffix, PrimitiveType, RelationalExpression, ResultType, ReturnStatement, ShiftExpression, Statement, StatementExpression, StatementExpressionList, SwitchLabel, SwitchStatement, SynchronizedStatement, ThrowStatement, TopBlock, TopBlockStatements, TryStatement, Type, TypeDeclaration, UnaryExpression, UnaryExpressionNotPlusMinus, UnmodifiedClassDeclaration, UnmodifiedInterfaceDeclaration, VariableDeclarator, VariableDeclaratorId, VariableInitializer, WhileStatement
- public class PiggybackableNode
- extends java.lang.Object
This class serves as an ancestor for the node classes in org.tromer.jie,
which are autogenerated by JTB.
prepiggy
and postpiggy
define arrays of pieces
of code that may be attached to this AST node. They "piggyback" this node,
and hence their name. Piggies are always attached according to the
"last is outermost" rule: the last prepiggy attached will be rendered
first, and the last postpiggy will be rendered last.
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
prepiggy
public java.util.Vector prepiggy
- Pieces of code to be added before the node
postpiggy
public java.util.Vector postpiggy
- Pieces of code to be added after the node
previsitIndex
public int previsitIndex
- Depth-First Search (DFS) timestamp when entering node
postvisitIndex
public int postvisitIndex
- Depth-First Search (DFS) timestamp when leaving node
beginLine
public int beginLine
beginColumn
public int beginColumn
endLine
public int endLine
endColumn
public int endColumn
PiggybackableNode
public PiggybackableNode()
attachPrepiggy
public void attachPrepiggy(java.lang.Object piggy)
attachPostpiggy
public void attachPostpiggy(java.lang.Object piggy)
getStartPos
public java.awt.Point getStartPos()
getEndPos
public java.awt.Point getEndPos()