Class ASTName

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.ast.impl.GenericNode<ModelicaNode>, net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode<ModelicaNode>, net.sourceforge.pmd.lang.ast.Node, net.sourceforge.pmd.lang.ast.TextAvailableNode, ModelicaNode, ResolvableModelicaNode, net.sourceforge.pmd.reporting.Reportable

    public final class ASTName
    extends net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<net.sourceforge.pmd.lang.modelica.ast.AbstractModelicaNode,​ModelicaNode>
    implements ResolvableModelicaNode
    • 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <P,​R>
      R
      acceptModelicaVisitor​(ModelicaVisitor<? super P,​? extends R> visitor, P data)  
      <P,​R>
      R
      acceptVisitor​(net.sourceforge.pmd.lang.ast.AstVisitor<? super P,​? extends R> visitor, P data)  
      CompositeName getCompositeName()
      Returns a CompositeName object representing a lexical reference contained in this node.
      ModelicaScope getContainingScope()
      Returns the lexical scope this node is contained in.
      ModelicaScope getMostSpecificScope()
      Returns the most specific lexical scope naturally associated with this node.
      String getName()  
      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.
      void jjtClose()  
      • 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, 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 interface net.sourceforge.pmd.lang.ast.impl.GenericNode

        ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, 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.ast.Node

        acceptVisitor, ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getUserMap, getXPathAttributesIterator, getXPathNodeName, 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 class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<net.sourceforge.pmd.lang.modelica.ast.AbstractModelicaNode,​ModelicaNode>
      • getName

        public String getName()
      • 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 a CompositeName object representing a lexical reference contained in this node.
      • getResolvedTo

        public String getResolvedTo()
      • acceptVisitor

        public final <P,​R> R acceptVisitor​(net.sourceforge.pmd.lang.ast.AstVisitor<? super P,​? extends R> visitor,
                                                 P data)
        Specified by:
        acceptVisitor in interface net.sourceforge.pmd.lang.ast.Node
      • getXPathNodeName

        public String getXPathNodeName()
        Specified by:
        getXPathNodeName in interface net.sourceforge.pmd.lang.ast.Node