Class ASTName
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<ModelicaNode>
-
- net.sourceforge.pmd.lang.modelica.ast.ASTName
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.Node
,ModelicaNode
,ResolvableModelicaNode
public final class ASTName extends net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<ModelicaNode> implements ResolvableModelicaNode
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBeginColumn()
int
getBeginLine()
CompositeName
getCompositeName()
Returns aCompositeName
object representing a lexical reference contained in this node.ModelicaScope
getContainingScope()
Returns the lexical scope this node is contained in.int
getEndColumn()
int
getEndLine()
ModelicaScope
getMostSpecificScope()
Returns the most specific lexical scope naturally associated with this node.ResolutionResult<ResolvableEntity>
getResolutionCandidates()
Returns resolution candidates for the referred entity.String
getResolvedTo()
String
getXPathNodeName()
boolean
isAbsolute()
Returns whether this reference is absolute (starts with a dot), such as.Modelica.Blocks.Continuous.Filter
.Object
jjtAccept(ModelicaParserVisitor visitor, Object data)
void
jjtClose()
void
jjtSetLastToken(net.sourceforge.pmd.lang.ast.GenericToken token)
-
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
-
jjtClose
public void jjtClose()
- Specified by:
jjtClose
in interfacenet.sourceforge.pmd.lang.ast.Node
-
isAbsolute
public boolean isAbsolute()
Returns whether this reference is absolute (starts with a dot), such as.Modelica.Blocks.Continuous.Filter
.
-
getCompositeName
public CompositeName getCompositeName()
Returns aCompositeName
object representing a lexical reference contained in this node.
-
getResolutionCandidates
public ResolutionResult<ResolvableEntity> getResolutionCandidates()
Returns resolution candidates for the referred entity. We do not decide on entity type on behalf of the rule code, since this may introduce false negatives.- Specified by:
getResolutionCandidates
in interfaceResolvableModelicaNode
-
getResolvedTo
public String getResolvedTo()
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getXPathNodeName
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getBeginLine
public int getBeginLine()
- Specified by:
getBeginLine
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getBeginLine
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getBeginColumn
public int getBeginColumn()
- Specified by:
getBeginColumn
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getBeginColumn
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getEndLine
public int getEndLine()
- Specified by:
getEndLine
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getEndLine
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getEndColumn
public int getEndColumn()
- Specified by:
getEndColumn
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getEndColumn
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
jjtSetLastToken
public void jjtSetLastToken(net.sourceforge.pmd.lang.ast.GenericToken token)
- Overrides:
jjtSetLastToken
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
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
-
-