Home | Download | News | Wiki | About ANTLR | Feedback | Support | Bugs


Latest version is 2.7.7.
Download now! »

Download
» Home
» Download
» News
»Using ANTLR
» Documentation
» Wiki
» FAQ
» Articles
» Grammars
» File Sharing
» Code API
» Tech Support
» Bug Tracking
»About ANTLR
» What is ANTLR
» Why use ANTLR
» Showcase
» Testimonials
» Getting Started
» Software License
» ANTLR WebLogs
» ANTLR Workshops
»StringTemplate
»TML
»PCCTS
»Feedback
»Credits
»Contact


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 ;)

Search



ASTPair


antlr
Class ASTPair

java.lang.Object
  extended byantlr.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
 AST child
           
 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

root

public AST root

child

public 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()