ptolemy.data.expr
Class ASTPtOrderedRecordConstructNode
java.lang.Object
ptolemy.data.expr.ASTPtRootNode
ptolemy.data.expr.ASTPtRecordConstructNode
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:
- Proposed Rating:
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 |
ASTPtOrderedRecordConstructNode
public ASTPtOrderedRecordConstructNode(int id)
ASTPtOrderedRecordConstructNode
public ASTPtOrderedRecordConstructNode(PtParser p,
int id)
visit
public void visit(ParseTreeVisitor visitor)
throws IllegalActionException
- Traverse this node with the given visitor.
- Overrides:
visit
in class ASTPtRecordConstructNode
- Throws:
IllegalActionException