Support StringTemplate, ANTLR Project by making a donation! Terence often pays for things like the antlr.org server, conference travel, and this site design (that alone cost US$1000). Buy him a beer and pizza remotely ;)
|
ASTPair
antlr
Class ASTPair
java.lang.Object
antlr.ASTPair
- public class ASTPair
- extends java.lang.Object
ASTPair: utility class used for manipulating a pair of ASTs
representing the current AST root and current AST sibling.
This exists to compensate for the lack of pointers or 'var'
arguments in Java.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
root
public AST root
child
public AST child
ASTPair
public ASTPair()
advanceChildToEnd
public final void advanceChildToEnd()
- Make sure that child is the last sibling
copy
public ASTPair copy()
- Copy an ASTPair. Don't call it clone() because we want type-safety
toString
public java.lang.String toString()
|