ptolemy.data.expr
Class ASTPtOrderedRecordConstructNode

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

public class ASTPtOrderedRecordConstructNode
extends ASTPtRecordConstructNode

The parse tree created from the expression string consists of a hierarchy of node objects. This class represents record construction using the following syntax: {foo = "abc", bar = 1}. The result of parsing and evaluating this expression is a record token with two fields: a field foo containing a StringToken of value "abc", and a field bar containing a IntToken of value 1.

Since:
Ptolemy II 8.0
Version:
$Id: ASTPtOrderedRecordConstructNode.java 57044 2010-01-27 22:41:05Z cxh $
Author:
Ben Leinfelder, based on ASTPtRecordConstructNode by Xiaojun Liu, Steve Neuendorffer
See Also:
ASTPtRootNode, PtParser, Token
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (liuxj)

Field Summary
 
Fields inherited from class ptolemy.data.expr.ASTPtRecordConstructNode
_fieldNames
 
Fields inherited from class ptolemy.data.expr.ASTPtRootNode
_children, _id, _isConstant, _parent, _ptToken, _ptType
 
Constructor Summary
ASTPtOrderedRecordConstructNode(int id)
           
ASTPtOrderedRecordConstructNode(PtParser p, int id)
           
 
Method Summary
 void visit(ParseTreeVisitor visitor)
          Traverse this node with the given visitor.
 
Methods inherited from class ptolemy.data.expr.ASTPtRecordConstructNode
getFieldNames, isCongruent
 
Methods inherited from class ptolemy.data.expr.ASTPtRootNode
clone, displayParseTree, evaluateParseTree, getToken, getType, 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

ASTPtOrderedRecordConstructNode

public ASTPtOrderedRecordConstructNode(int id)

ASTPtOrderedRecordConstructNode

public ASTPtOrderedRecordConstructNode(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 ASTPtRecordConstructNode
Throws:
IllegalActionException