avrora.syntax
Class ASTNode

java.lang.Object
  extended byavrora.syntax.ASTNode
Direct Known Subclasses:
Expr, ExprList, SyntacticOperand

public abstract class ASTNode
extends java.lang.Object

The ASTNode class is a unification of all syntax-related items that are dealt with in loading source programs. This allows the error generator to get an easy handle on where the error occurred in the source program.


Constructor Summary
ASTNode()
           
 
Method Summary
abstract  AbstractToken getLeftMostToken()
          The getLeftMostToken() method gets the first token associated with the abstract syntax tree node.
abstract  AbstractToken getRightMostToken()
          The getRightMostToken() method gets the last token associated with the abstract syntax tree node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTNode

public ASTNode()
Method Detail

getLeftMostToken

public abstract AbstractToken getLeftMostToken()
The getLeftMostToken() method gets the first token associated with the abstract syntax tree node.

Returns:
an AbstractToken instance representing the first token that is a part of this syntactic item.

getRightMostToken

public abstract AbstractToken getRightMostToken()
The getRightMostToken() method gets the last token associated with the abstract syntax tree node.

Returns:
an AbstractToken instance representing the last token that is a part of this syntactic item.