persistence.antlr
Class ASTPair

java.lang.Object
  extended by persistence.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.


Field Summary
 persistence.antlr.collections.AST child
           
 persistence.antlr.collections.AST root
           
 
Constructor Summary
ASTPair()
           
 
Method Summary
 void advanceChildToEnd()
          Make sure that child is the last sibling
 ASTPair copy()
          Copy an ASTPair.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

root

public persistence.antlr.collections.AST root

child

public persistence.antlr.collections.AST child
Constructor Detail

ASTPair

public ASTPair()
Method Detail

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()
Overrides:
toString in class java.lang.Object