public class ParseTreeASTNodeAdapterCollector extends AbstractParseTreeVisitor
ASTPtRootNode
Modifier and Type | Field and Description |
---|---|
protected java.util.List<OntologyAdapter> |
_adapters
The list of ontology adapters for each node in the AST.
|
protected OntologySolver |
_solver
The given ontology solver for which the AST will be evaluated.
|
Constructor and Description |
---|
ParseTreeASTNodeAdapterCollector() |
Modifier and Type | Method and Description |
---|---|
protected void |
_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 |
_visitChild(ASTPtRootNode node,
int i)
Visit the child with the given index of the given node.
|
java.util.List<OntologyAdapter> |
collectAdapters(ASTPtRootNode node,
OntologySolver solver)
Infer the property of the parse tree with the specified root node using
the specified scope to resolve the values of variables.
|
_unsupportedVisitException, visitArrayConstructNode, visitAssignmentNode, visitBitwiseNode, visitFunctionalIfNode, visitFunctionApplicationNode, visitFunctionDefinitionNode, visitLeafNode, visitLogicalNode, visitMatrixConstructNode, visitMethodCallNode, visitPowerNode, visitProductNode, visitRecordConstructNode, visitRelationalNode, visitShiftNode, visitSumNode, visitUnaryNode, visitUnionConstructNode
protected java.util.List<OntologyAdapter> _adapters
protected OntologySolver _solver
public java.util.List<OntologyAdapter> collectAdapters(ASTPtRootNode node, OntologySolver solver) throws IllegalActionException
node
- The root of the parse tree.solver
- The given solver.IllegalActionException
- If an error occurs during
evaluation.protected void _visitAllChildren(ASTPtRootNode node) throws IllegalActionException
_visitAllChildren
in class AbstractParseTreeVisitor
node
- The root node whose children will be visitedIllegalActionException
- If an exception is thrown while
visiting child nodesprotected void _visitChild(ASTPtRootNode node, int i) throws IllegalActionException
_visitChild
in class AbstractParseTreeVisitor
node
- The root node whose child will be visitedi
- The index (starting from 0) of the child node to be visitedIllegalActionException
- If an exception is thrown while
visiting the child node