com.veromodo.tempo.ast
Class ASTNode

java.lang.Object
  extended by com.veromodo.tempo.ast.ASTNode
All Implemented Interfaces:
Locatable
Direct Known Subclasses:
ASTAction, ASTActionFormal, ASTActionSet, ASTActual, ASTComponent, ASTComponentDef, ASTDecl, ASTDefType, ASTEffect, ASTExpr, ASTForClause, ASTFormal, ASTIdOrNum, ASTList, ASTMSGInvoke, ASTNotation, ASTOperatorSignature, ASTRoot, ASTSchedule, ASTSimProof, ASTSimProofAction, ASTSimProofEntry, ASTStartEntry, ASTState, ASTStatement, ASTTask, ASTTrajectory, ASTTrajRef, ASTType, ASTVocabRef

public abstract class ASTNode
extends java.lang.Object
implements Locatable

This class is the root of the Abstract Syntax Tree class hierarchy. All the syntax tree node must ultimately inherit from ASTNode. The front-end implementation makes heavy use of the Visitor Design Pattern see Visitor

Author:
L. Michel
See Also:
ASTIVisitor

Constructor Summary
ASTNode()
          Default constructor.
 
Method Summary
 Extent getExtent()
          Accessor
 void setExtent(Extent e)
          Assigns an extent to an existing node
abstract  void visit(ASTIVisitor v)
          Abstract method to traverse the AST via a visitor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTNode

public ASTNode()
Default constructor.

Method Detail

setExtent

public void setExtent(Extent e)
Assigns an extent to an existing node

Parameters:
e - new extent
See Also:
Extent

getExtent

public Extent getExtent()
Accessor

Specified by:
getExtent in interface Locatable
Returns:
retrieves the extent of the node

visit

public abstract void visit(ASTIVisitor v)
Abstract method to traverse the AST via a visitor.

Parameters:
v - the visitor interface
See Also:
ASTIVisitor