ptolemy.data.expr
Class ASTPtArrayConstructNode

java.lang.Object
  extended by ptolemy.data.expr.ASTPtRootNode
      extended by ptolemy.data.expr.ASTPtArrayConstructNode
All Implemented Interfaces:
java.lang.Cloneable, Node

public class ASTPtArrayConstructNode
extends ASTPtRootNode

The parse tree created from the expression string consists of a hierarchy of node objects. This class represents array construction using the following syntax: {"a", "b"}.

Since:
Ptolemy II 1.0
Version:
$Id: ASTPtArrayConstructNode.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Xiaojun Liu
See Also:
ASTPtRootNode, PtParser, Token
Accepted Rating:
Red (cxh)
Proposed Rating:
Yellow (liuxj)

Field Summary
 
Fields inherited from class ptolemy.data.expr.ASTPtRootNode
_children, _id, _isConstant, _parent, _ptToken, _ptType
 
Constructor Summary
ASTPtArrayConstructNode(int id)
           
ASTPtArrayConstructNode(PtParser p, int id)
           
 
Method Summary
 void visit(ParseTreeVisitor visitor)
          Traverse this node with the given visitor.
 
Methods inherited from class ptolemy.data.expr.ASTPtRootNode
clone, displayParseTree, evaluateParseTree, getToken, getType, isCongruent, isConstant, isEvaluated, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setConstant, setToken, setType, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTPtArrayConstructNode

public ASTPtArrayConstructNode(int id)

ASTPtArrayConstructNode

public ASTPtArrayConstructNode(PtParser p,
                               int id)
Method Detail

visit

public void visit(ParseTreeVisitor visitor)
           throws IllegalActionException
Traverse this node with the given visitor.

Overrides:
visit in class ASTPtRootNode
Throws:
IllegalActionException