Interface ModelicaNode

All Superinterfaces:
GenericNode<ModelicaNode>, JjtreeNode<ModelicaNode>, Node, Reportable, TextAvailableNode
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 JjtreeNode<ModelicaNode>
Public interface for all Modelica AST nodes.
  • Method Details

    • 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