Class ASTMultipleDefinitionImportClause
java.lang.Object
net.sourceforge.pmd.lang.ast.impl.AbstractNode<B,N>
net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<net.sourceforge.pmd.lang.modelica.ast.AbstractModelicaNode,ModelicaNode>
net.sourceforge.pmd.lang.modelica.ast.ASTMultipleDefinitionImportClause
- All Implemented Interfaces:
GenericNode<ModelicaNode>,JjtreeNode<ModelicaNode>,Node,TextAvailableNode,ModelicaImportClause,ModelicaNode,Reportable
public final class ASTMultipleDefinitionImportClause
extends AbstractJjtreeNode<net.sourceforge.pmd.lang.modelica.ast.AbstractModelicaNode,ModelicaNode>
-
Field Summary
Fields inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
idFields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR -
Method Summary
Modifier and TypeMethodDescriptionprotected <P,R> R acceptModelicaVisitor(ModelicaVisitor<? super P, ? extends R> visitor, P data) final <P,R> R acceptVisitor(AstVisitor<? super P, ? extends R> visitor, P data) protected voidfetchImportedClassesFromSource(net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext result, ModelicaDeclaration source, String simpleName) A template method to be used byresolveSimpleName(net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext, java.lang.String).protected ResolutionResult<ModelicaDeclaration>getCacheableImportSources(net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionState state, ModelicaScope scope) A template method to be used byresolveSimpleName(net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext, java.lang.String).Returns the lexical scope this node is contained in.Returns the most specific lexical scope naturally associated with this node.booleanvoidjjtClose()Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
addChild, compareLocation, enlargeLeft, fitTokensToChildren, getFirstToken, getImage, getLastToken, getTextRegion, insertChild, jjtOpen, setFirstToken, setImage, setLastToken, toStringMethods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, remove, removeChildAtIndex, setChild, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSiblingMethods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode
getFirstToken, getLastToken, tokensMethods inherited from interface net.sourceforge.pmd.lang.modelica.ast.ModelicaNode
getContainingScope, getMostSpecificScopeMethods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasImageEqualTo, isFindBoundaryMethods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode
getOriginalText, getText, getTextRegion
-
Method Details
-
acceptModelicaVisitor
-
jjtClose
public void jjtClose()- Overrides:
jjtClosein classAbstractJjtreeNode<net.sourceforge.pmd.lang.modelica.ast.AbstractModelicaNode,ModelicaNode>
-
getCacheableImportSources
protected ResolutionResult<ModelicaDeclaration> getCacheableImportSources(net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionState state, ModelicaScope scope) A template method to be used byresolveSimpleName(net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext, java.lang.String). Usually used to fetch the lexically referenced class in the corresponding import statement. -
fetchImportedClassesFromSource
protected void fetchImportedClassesFromSource(net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext result, ModelicaDeclaration source, String simpleName) throws net.sourceforge.pmd.lang.modelica.resolver.internal.Watchdog.CountdownException A template method to be used byresolveSimpleName(net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext, java.lang.String). Usually used to try to fetch declarations forsimpleNamefrom particular source returned bygetCacheableImportSources(net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionState, net.sourceforge.pmd.lang.modelica.resolver.ModelicaScope).- Throws:
net.sourceforge.pmd.lang.modelica.resolver.internal.Watchdog.CountdownException
-
isQualified
public boolean isQualified() -
acceptVisitor
- Specified by:
acceptVisitorin interfaceNode
-
getXPathNodeName
- Specified by:
getXPathNodeNamein interfaceNode
-
getContainingScope
Description copied from interface:ModelicaNodeReturns the lexical scope this node is contained in.- Specified by:
getContainingScopein interfaceModelicaNode
-
getMostSpecificScope
Description copied from interface:ModelicaNodeReturns the most specific lexical scope naturally associated with this node.- Specified by:
getMostSpecificScopein interfaceModelicaNode- Returns:
- the scope defined by this node itself or the same as
ModelicaNode.getContainingScope()otherwise
-