streamit.frontend.nodes
Class FENode

java.lang.Object
  extended by streamit.frontend.nodes.FENode
Direct Known Subclasses:
Expression, FieldDecl, Function, Program, SplitterJoiner, Statement, StreamCreator, StreamSpec, StreamType

public abstract class FENode
extends Object

Any node in the tree created by the front-end's parser. This is the root of the front-end class tree. Derived classes include statement, expression, and stream object nodes.

Version:
$Id: FENode.java,v 1.2 2003/10/09 19:50:59 dmaze Exp $
Author:
David Maze <dmaze@cag.lcs.mit.edu>

Constructor Summary
FENode(FEContext context)
          Create a new node with the specified context.
 
Method Summary
abstract  Object accept(FEVisitor v)
          Calls an appropriate method in a visitor object with this as a parameter.
 FEContext getContext()
          Returns the context associated with this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FENode

public FENode(FEContext context)
Create a new node with the specified context.

Parameters:
context - file and line number for the node
Method Detail

getContext

public FEContext getContext()
Returns the context associated with this node.

Returns:
context object with file and line number

accept

public abstract Object accept(FEVisitor v)
Calls an appropriate method in a visitor object with this as a parameter.

Parameters:
v - visitor object
Returns:
the value returned by the method corresponding to this type in the visitor object