Class ASTSingleDefinitionImportClause
- 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.ASTSingleDefinitionImportClause
-
- All Implemented Interfaces:
GenericNode<ModelicaNode>
,JjtreeNode<ModelicaNode>
,Node
,TextAvailableNode
,ModelicaImportClause
,ModelicaNode
,Reportable
public class ASTSingleDefinitionImportClause extends AbstractJjtreeNode<net.sourceforge.pmd.lang.modelica.ast.AbstractModelicaNode,ModelicaNode>
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
id
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
addChild, compareLocation, fitTokensToChildren, getFirstToken, getImage, getLastToken, getTextRegion, insertChild, jjtOpen, setFirstToken, setLastToken, toString
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, remove, removeChildAtIndex, setChild, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getNthParent, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode
getFirstToken, getLastToken, tokens
-
Methods inherited from interface net.sourceforge.pmd.lang.modelica.ast.ModelicaNode
getContainingScope, getMostSpecificScope, jjtAccept
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getParentsOfType, getReportLocation, getRoot, getTextDocument, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantOfType, hasImageEqualTo, isFindBoundary
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode
getOriginalText, getText, getTextRegion
-
-
-
-
Method Detail
-
acceptModelicaVisitor
protected <P,R> R acceptModelicaVisitor(ModelicaVisitor<? super P,? extends R> visitor, P data)
-
jjtClose
public void jjtClose()
- Overrides:
jjtClose
in classAbstractJjtreeNode<net.sourceforge.pmd.lang.modelica.ast.AbstractModelicaNode,ModelicaNode>
-
getCacheableImportSources
protected ResolutionResult<ModelicaDeclaration> getCacheableImportSources(ResolutionState state, ModelicaScope scope)
A template method to be used byresolveSimpleName(net.sourceforge.pmd.lang.modelica.resolver.ResolutionContext, java.lang.String)
. Usually used to fetch the lexically referenced class in the corresponding import statement.
-
fetchImportedClassesFromSource
protected void fetchImportedClassesFromSource(ResolutionContext result, ModelicaDeclaration source, String simpleName)
A template method to be used byresolveSimpleName(net.sourceforge.pmd.lang.modelica.resolver.ResolutionContext, java.lang.String)
. Usually used to try to fetch declarations forsimpleName
from particular source returned bygetCacheableImportSources(net.sourceforge.pmd.lang.modelica.resolver.ResolutionState, net.sourceforge.pmd.lang.modelica.resolver.ModelicaScope)
.
-
isQualified
public boolean isQualified()
-
setImage
protected void setImage(String image)
- Overrides:
setImage
in classAbstractJjtreeNode<net.sourceforge.pmd.lang.modelica.ast.AbstractModelicaNode,ModelicaNode>
-
acceptVisitor
public final <P,R> R acceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
- Specified by:
acceptVisitor
in interfaceNode
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfaceNode
-
getContainingScope
public ModelicaScope getContainingScope()
Description copied from interface:ModelicaNode
Returns the lexical scope this node is contained in.- Specified by:
getContainingScope
in interfaceModelicaNode
-
getMostSpecificScope
public ModelicaScope getMostSpecificScope()
Description copied from interface:ModelicaNode
Returns the most specific lexical scope naturally associated with this node.- Specified by:
getMostSpecificScope
in interfaceModelicaNode
- Returns:
- the scope defined by this node itself or the same as
ModelicaNode.getContainingScope()
otherwise
-
-