Interface ModelicaNode
-
- All Superinterfaces:
Node
- All Known Subinterfaces:
ModelicaClassSpecifierNode
,ModelicaImportClause
,ResolvableModelicaNode
- All Known Implementing Classes:
ASTAddOp
,ASTAlgorithmSection
,ASTAnnotation
,ASTArgument
,ASTArgumentList
,ASTArithmeticExpression
,ASTArraySubscripts
,ASTAssignmentFromMultiResultFunctionCall
,ASTAssignmentModification
,ASTAssignmentStatement
,ASTBasePrefix
,ASTBlockClause
,ASTBreakStatement
,ASTClassClause
,ASTClassDefinition
,ASTClassModification
,ASTClassPrefixes
,ASTClassSpecifier
,ASTColonSubsript
,ASTComment
,ASTComponentClause
,ASTComponentClause1
,ASTComponentDeclaration
,ASTComponentDeclaration1
,ASTComponentList
,ASTComponentReference
,ASTComposition
,ASTConditionAttribute
,ASTConnectClause
,ASTConnectorClause
,ASTConstantClause
,ASTConstrainingClause
,ASTDeclaration
,ASTDerClassSpecifier
,ASTDerClause
,ASTDiscreteClause
,ASTEachClause
,ASTElementList
,ASTElementModification
,ASTElementModificationOrReplaceable
,ASTElementRedeclaration
,ASTElementReplaceable
,ASTElseClause
,ASTElseIfClause
,ASTElseWhenClause
,ASTEncapsulatedClause
,ASTEnumerationLiteral
,ASTEnumerationShortClassSpecifier
,ASTEnumList
,ASTEquation
,ASTEquationList
,ASTEquationSection
,ASTExpandableConnectorClause
,ASTExpressionList
,ASTExtendingLongClassSpecifier
,ASTExtendsClause
,ASTExternalClause
,ASTExternalFunctionCall
,ASTFactor
,ASTFalseLiteral
,ASTFinalClause
,ASTFlowClause
,ASTForEquation
,ASTForIndex
,ASTForIndices
,ASTForStatement
,ASTFunctionArgument
,ASTFunctionArguments
,ASTFunctionCallArgs
,ASTFunctionCallEquation
,ASTFunctionCallStatement
,ASTFunctionClause
,ASTFunctionInvocation
,ASTIfClause
,ASTIfEquation
,ASTIfExpression
,ASTIfStatement
,ASTImportClause
,ASTImportList
,ASTImpureClause
,ASTInitialClause
,ASTInnerClause
,ASTInputClause
,ASTLanguageSpecification
,ASTListOfExpressionLists
,ASTLogicalExpression
,ASTLogicalTerm
,ASTLongModification
,ASTModelClause
,ASTMulOp
,ASTMultipleDefinitionImportClause
,ASTName
,ASTNamedArgument
,ASTNamedArguments
,ASTNegated
,ASTNumberLiteral
,ASTOperator
,ASTOperatorClause
,ASTOperatorRecordClause
,ASTOuterClause
,ASTOutputClause
,ASTOutputExpressionList
,ASTPackageClause
,ASTParameterClause
,ASTPartialClause
,ASTPureClause
,ASTRecordClause
,ASTRedeclareClause
,ASTRegularElement
,ASTRegularEquation
,ASTRelation
,ASTRelOp
,ASTRenamingImportClause
,ASTReplaceableClause
,ASTReturnStatement
,ASTShortClassDefinition
,ASTShortModification
,ASTSimpleExpression
,ASTSimpleLongClassSpecifier
,ASTSimpleName
,ASTSimpleShortClassSpecifier
,ASTSingleDefinitionImportClause
,ASTStatement
,ASTStatementList
,ASTStoredDefinition
,ASTStreamClause
,ASTStringComment
,ASTStringLiteral
,ASTSubscript
,ASTSubscriptedName
,ASTTerm
,ASTThenClause
,ASTTrueLiteral
,ASTTypeClause
,ASTTypePrefix
,ASTTypeSpecifier
,ASTUnqualifiedImportClause
,ASTWhenClause
,ASTWhenEquation
,ASTWhenStatement
,ASTWhileStatement
,ASTWithinClause
public interface ModelicaNode extends Node
Public interface for all Modelica AST nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterable<? extends ModelicaNode>
children()
ModelicaNode
getChild(int index)
ModelicaScope
getContainingScope()
Returns the lexical scope this node is contained in.ModelicaScope
getMostSpecificScope()
Returns the most specific lexical scope naturally associated with this node.ModelicaNode
getParent()
Object
jjtAccept(ModelicaParserVisitor visitor, Object data)
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Method Detail
-
getContainingScope
ModelicaScope getContainingScope()
Returns the lexical scope this node is contained in.
-
getMostSpecificScope
ModelicaScope getMostSpecificScope()
Returns the most specific lexical scope naturally associated with this node.- Returns:
- the scope defined by this node itself or the same as
getContainingScope()
otherwise
-
jjtAccept
Object jjtAccept(ModelicaParserVisitor visitor, Object data)
-
getParent
ModelicaNode getParent()
-
getChild
ModelicaNode getChild(int index)
-
children
Iterable<? extends ModelicaNode> children()
-
-