public class ParseTreeFreeVariableCollector extends AbstractParseTreeVisitor
ASTPtRootNode| Red (cxh) |
| Red (neuendor) |
| Modifier and Type | Field and Description |
|---|---|
protected ParserScope |
_scope |
protected java.util.Set |
_set |
| Constructor and Description |
|---|
ParseTreeFreeVariableCollector() |
_unsupportedVisitException, visitAssignmentNode, visitUnionConstructNodeprotected ParserScope _scope
protected java.util.Set _set
public java.util.Set collectFreeVariables(ASTPtRootNode node) throws IllegalActionException
IllegalActionExceptionpublic java.util.Set collectFreeVariables(ASTPtRootNode node, ParserScope scope) throws IllegalActionException
IllegalActionExceptionpublic void visitArrayConstructNode(ASTPtArrayConstructNode node) throws IllegalActionException
visitArrayConstructNode in interface ParseTreeVisitorvisitArrayConstructNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitBitwiseNode(ASTPtBitwiseNode node) throws IllegalActionException
visitBitwiseNode in interface ParseTreeVisitorvisitBitwiseNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitFunctionApplicationNode(ASTPtFunctionApplicationNode node) throws IllegalActionException
visitFunctionApplicationNode in interface ParseTreeVisitorvisitFunctionApplicationNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitFunctionDefinitionNode(ASTPtFunctionDefinitionNode node) throws IllegalActionException
visitFunctionDefinitionNode in interface ParseTreeVisitorvisitFunctionDefinitionNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitFunctionalIfNode(ASTPtFunctionalIfNode node) throws IllegalActionException
visitFunctionalIfNode in interface ParseTreeVisitorvisitFunctionalIfNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitLeafNode(ASTPtLeafNode node) throws IllegalActionException
visitLeafNode in interface ParseTreeVisitorvisitLeafNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitLogicalNode(ASTPtLogicalNode node) throws IllegalActionException
visitLogicalNode in interface ParseTreeVisitorvisitLogicalNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitMatrixConstructNode(ASTPtMatrixConstructNode node) throws IllegalActionException
visitMatrixConstructNode in interface ParseTreeVisitorvisitMatrixConstructNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitMethodCallNode(ASTPtMethodCallNode node) throws IllegalActionException
visitMethodCallNode in interface ParseTreeVisitorvisitMethodCallNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitPowerNode(ASTPtPowerNode node) throws IllegalActionException
visitPowerNode in interface ParseTreeVisitorvisitPowerNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitProductNode(ASTPtProductNode node) throws IllegalActionException
visitProductNode in interface ParseTreeVisitorvisitProductNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitRecordConstructNode(ASTPtRecordConstructNode node) throws IllegalActionException
visitRecordConstructNode in interface ParseTreeVisitorvisitRecordConstructNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitRelationalNode(ASTPtRelationalNode node) throws IllegalActionException
visitRelationalNode in interface ParseTreeVisitorvisitRelationalNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitShiftNode(ASTPtShiftNode node) throws IllegalActionException
visitShiftNode in interface ParseTreeVisitorvisitShiftNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitSumNode(ASTPtSumNode node) throws IllegalActionException
visitSumNode in interface ParseTreeVisitorvisitSumNode in class AbstractParseTreeVisitorIllegalActionExceptionpublic void visitUnaryNode(ASTPtUnaryNode node) throws IllegalActionException
visitUnaryNode in interface ParseTreeVisitorvisitUnaryNode in class AbstractParseTreeVisitorIllegalActionExceptionprotected boolean _isValidName(java.lang.String name)
throws IllegalActionException
IllegalActionExceptionprotected void _visitAllChildren(ASTPtRootNode node) throws IllegalActionException
_visitAllChildren in class AbstractParseTreeVisitornode - The node whose children are to be looped through.IllegalActionException - If thrown while visiting a child
node.protected void _visitChild(ASTPtRootNode node, int i) throws IllegalActionException
_visitChild in class AbstractParseTreeVisitornode - The node.i - The index of the child to be visited.IllegalActionException - If thrown while visiting a child
node.