Class ASTSingleDefinitionImportClause
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<ModelicaNode>
-
- net.sourceforge.pmd.lang.modelica.ast.ASTSingleDefinitionImportClause
-
- All Implemented Interfaces:
Node
,ModelicaImportClause
,ModelicaNode
public class ASTSingleDefinitionImportClause extends AbstractJjtreeNode<ModelicaNode>
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
-
-
Method Summary
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
children, getChild, getParent
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getDataFlowNode, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetFirstToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
-
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.modelica.ast.ModelicaNode
children, getChild, getContainingScope, getMostSpecificScope, getParent
-
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, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Method Detail
-
jjtAccept
public Object jjtAccept(ModelicaParserVisitor visitor, Object data)
- Specified by:
jjtAccept
in interfaceModelicaNode
-
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()
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfaceNode
- Overrides:
getXPathNodeName
in classAbstractNode
-
getBeginLine
public int getBeginLine()
- Specified by:
getBeginLine
in interfaceNode
- Overrides:
getBeginLine
in classAbstractNode
-
getBeginColumn
public int getBeginColumn()
- Specified by:
getBeginColumn
in interfaceNode
- Overrides:
getBeginColumn
in classAbstractNode
-
getEndLine
public int getEndLine()
- Specified by:
getEndLine
in interfaceNode
- Overrides:
getEndLine
in classAbstractNode
-
getEndColumn
public int getEndColumn()
- Specified by:
getEndColumn
in interfaceNode
- Overrides:
getEndColumn
in classAbstractNode
-
jjtSetLastToken
public void jjtSetLastToken(GenericToken token)
- Overrides:
jjtSetLastToken
in classAbstractNode
-
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
-
-