Package 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$
- Author:
- Ben Leinfelder, based on ASTPtRecordConstructNode by Xiaojun Liu, Steve Neuendorffer
- See Also:
ASTPtRootNode
,PtParser
,Token
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- 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
Constructors Constructor Description ASTPtOrderedRecordConstructNode(int id)
ASTPtOrderedRecordConstructNode(PtParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 classASTPtRecordConstructNode
- Parameters:
visitor
- The visitor.- Throws:
IllegalActionException
- Always thrown in this base class the visit() method is not implemented here.
-
-