Package | Description |
---|---|
ptolemy.data.expr |
The Ptolemy II Expression Language.
|
ptolemy.domains.modal.kernel |
The ptolemy.domains.modal.kernel package.
|
Modifier and Type | Class and Description |
---|---|
class |
ASTPtArrayConstructNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtAssignmentNode |
class |
ASTPtBitwiseNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtFunctionalIfNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtFunctionApplicationNode
This class represents an expression that is the application of a
function in the parse tree.
|
class |
ASTPtFunctionDefinitionNode
The parse tree created from function definitions of the form:
function (x) x + 5
which defines a function of one argument.
|
class |
ASTPtLeafNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtLogicalNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtMatrixConstructNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtMethodCallNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtOrderedRecordConstructNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtPowerNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtProductNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtRecordConstructNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtRelationalNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtShiftNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtSumNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtUnaryNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
class |
ASTPtUnionConstructNode
The parse tree created from the expression string consists of a
hierarchy of node objects.
|
Modifier and Type | Field and Description |
---|---|
protected ASTPtRootNode |
ParseTreeSpecializer._result |
Modifier and Type | Method and Description |
---|---|
ASTPtRootNode |
PtParser.generateParseTree(java.lang.String stringIn)
Generates a parse tree from the given String.
|
ASTPtRootNode |
PtParser.generateSimpleAssignmentParseTree(java.lang.String stringIn)
Generates a parse tree from the given String, which may optionally
contain an assignment.
|
ASTPtRootNode |
PtParser.generateStringParseTree(java.lang.String stringIn)
Generates a parse tree from the given String, which is interpreted
in "String Mode" instead of as an operator expression.
|
ASTPtRootNode |
ASTPtAssignmentNode.getExpressionTree() |
ASTPtRootNode |
ASTPtFunctionDefinitionNode.getExpressionTree()
Return the parse tree of the expression for this function.
|
ASTPtRootNode |
ParseTreeSpecializer.specialize(ASTPtRootNode node,
java.util.List excludedNames,
ParserScope scope)
Return a new parse tree resulting from the specialization of
the given parse tree.
|
ASTPtRootNode |
PtParser.start() |
ASTPtRootNode |
PtParser.startSimpleAssignment() |
ASTPtRootNode |
PtParser.startString() |
Modifier and Type | Method and Description |
---|---|
protected void |
CParseTreeCodeGenerator._assert(boolean flag,
ASTPtRootNode node,
java.lang.String message)
Assert that the given boolean value, which describes the given
parse tree node is true.
|
protected void |
ParseTreeTypeInference._assert(boolean flag,
ASTPtRootNode node,
java.lang.String message)
Assert that the given boolean value, which describes the given
parse tree node is true.
|
protected void |
ParseTreeEvaluator._assert(boolean flag,
ASTPtRootNode node,
java.lang.String message)
Assert that the given boolean value, which describes the given
parse tree node, is true.
|
protected boolean |
ParseTreeSpecializer._childrenAreConstant(ASTPtRootNode node)
Return true if all of the children of this node are constant.
|
protected void |
ParseTreeSpecializer._defaultVisit(ASTPtRootNode node) |
protected void |
ParseTreeDumper._displayNode(ASTPtRootNode node)
Display the given node with the current prefix, recursing into
the children of the node.
|
protected Token[] |
ParseTreeEvaluator._evaluateAllChildren(ASTPtRootNode node)
Loop through all of the children of this node,
visiting each one of them; this will cause their token
value to be determined.
|
protected Token |
ParseTreeEvaluator._evaluateArrayIndex(ASTPtRootNode node,
Token value,
Token index)
Evaluate the array index operation represented by the given node.
|
protected Token |
ParseTreeEvaluator._evaluateChild(ASTPtRootNode node,
int i)
Evaluate the child with the given index of the given node.
|
protected Token |
ParseTreeEvaluator._evaluateMatrixIndex(ASTPtRootNode node,
Token value,
Token rowIndex,
Token columnIndex)
Evaluate the Matrix index operation represented by the given node.
|
protected void |
CParseTreeCodeGenerator._generateAllChildren(ASTPtRootNode node)
Loop through all of the children of this node,
visiting each one of them, which will cause their token
value to be determined.
|
protected void |
CParseTreeCodeGenerator._generateChild(ASTPtRootNode node,
int i)
Visit the child with the given index of the given node.
|
protected Type[] |
ParseTreeTypeInference._inferAllChildren(ASTPtRootNode node)
Loop through all of the children of this node,
visiting each one of them, which will cause their token
value to be determined.
|
protected Type |
ParseTreeTypeInference._inferChild(ASTPtRootNode node,
int i)
Visit the child with the given index of the given node.
|
protected void |
ParseTreeSpecializer._replaceConstantNode(ASTPtRootNode node) |
protected void |
ParseTreeTypeInference._setType(ASTPtRootNode node,
Type type) |
protected void |
ParseTreeEvaluator._traceEnter(ASTPtRootNode node)
Add a record to the current trace corresponding to the start
of the evaluation of the given node.
|
protected void |
ParseTreeEvaluator._traceLeave(ASTPtRootNode node)
Add a record to the current trace corresponding to the completion
of the evaluation of the given node.
|
protected void |
ParseTreeFreeVariableRenamer._visitAllChildren(ASTPtRootNode node)
Loop through all of the children of this node,
visiting each one of them, which will cause their token
value to be determined.
|
protected void |
ParseTreeFreeVariableCollector._visitAllChildren(ASTPtRootNode node)
Loop through all of the children of this node,
visiting each one of them, which will cause their token
value to be determined.
|
protected void |
AbstractParseTreeVisitor._visitAllChildren(ASTPtRootNode node)
Loop through all of the children of this node,
visiting each one of them, which will cause their token
value to be determined.
|
protected void |
ParseTreeFreeVariableRenamer._visitChild(ASTPtRootNode node,
int i)
Visit the child with the given index of the given node.
|
protected void |
ParseTreeFreeVariableCollector._visitChild(ASTPtRootNode node,
int i)
Visit the child with the given index of the given node.
|
protected void |
AbstractParseTreeVisitor._visitChild(ASTPtRootNode node,
int i)
Visit the child with the given index of the given node.
|
java.util.Set |
ParseTreeFreeVariableCollector.collectFreeVariables(ASTPtRootNode node)
Return the set of names of free variables in the given parse
tree.
|
java.util.Set |
ParseTreeFreeVariableCollector.collectFreeVariables(ASTPtRootNode node,
ParserScope scope) |
void |
ParseTreeWriter.displayParseTree(ASTPtRootNode root) |
void |
ParseTreeDumper.displayParseTree(ASTPtRootNode root)
Print the contents of a parse tree.
|
Token |
ParseTreeEvaluator.evaluateParseTree(ASTPtRootNode node)
Evaluate the parse tree with the specified root node.
|
Token |
ParseTreeEvaluator.evaluateParseTree(ASTPtRootNode node,
ParserScope scope)
Evaluate the parse tree with the specified root node using
the specified scope to resolve the values of variables.
|
void |
CParseTreeCodeGenerator.generateCode(ASTPtRootNode node)
Generate code for a node.
|
Type |
ParseTreeTypeInference.inferTypes(ASTPtRootNode node)
Infer the type of the parse tree with the specified root node.
|
Type |
ParseTreeTypeInference.inferTypes(ASTPtRootNode node,
ParserScope scope)
Infer the type of the parse tree with the specified root node using
the specified scope to resolve the values of variables.
|
boolean |
ASTPtRootNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
boolean |
ASTPtRelationalNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
boolean |
ASTPtLogicalNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
boolean |
ASTPtSumNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
boolean |
ASTPtBitwiseNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
boolean |
ASTPtRecordConstructNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
boolean |
ASTPtShiftNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
boolean |
ASTPtFunctionDefinitionNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
boolean |
ASTPtUnionConstructNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
boolean |
ASTPtLeafNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
boolean |
ASTPtUnaryNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
boolean |
ASTPtProductNode.isCongruent(ASTPtRootNode node,
java.util.Map renaming)
Return true if this node is (hierarchically) congruent to the
given node, under the given renaming of bound identifiers.
|
java.lang.String |
ParseTreeWriter.parseTreeToExpression(ASTPtRootNode root)
Produce an expression for this parse tree.
|
java.lang.String |
ParseTreeWriter.printParseTree(ASTPtRootNode root)
Return an expression for this parse tree, or a description
of the exception if an exception occurs.
|
void |
ParseTreeFreeVariableRenamer.renameVariables(ASTPtRootNode node,
Variable dependentVariable,
Variable variableToRename,
java.lang.String name)
Rename the variables, if any, in the dependentVariable
that refer to the specified variableToRename.
|
ASTPtRootNode |
ParseTreeSpecializer.specialize(ASTPtRootNode node,
java.util.List excludedNames,
ParserScope scope)
Return a new parse tree resulting from the specialization of
the given parse tree.
|
java.lang.String |
ParseTreeEvaluator.traceParseTreeEvaluation(ASTPtRootNode node,
ParserScope scope)
Trace the evaluation of the parse tree with the specified root
node using the specified scope to resolve the values of
variables.
|
Constructor and Description |
---|
ExpressionFunction(java.util.List argumentNames,
Type[] argumentTypes,
ASTPtRootNode exprRoot)
Construct a function closure that encapsulates an expression tree.
|
Modifier and Type | Method and Description |
---|---|
ASTPtRootNode |
AbstractActionsAttribute.getParseTree(java.lang.String name)
Return the parse tree referred to by the given name.
|
Modifier and Type | Method and Description |
---|---|
Token |
ParseTreeEvaluatorForGuardExpression.evaluateParseTree(ASTPtRootNode node,
ParserScope scope)
Evaluate the parse tree with the specified root node using
the specified scope to resolve the values of variables.
|