Class ASTName

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.ASTName
All Implemented Interfaces:
GenericNode<ModelicaNode>, JjtreeNode<ModelicaNode>, Node, TextAvailableNode, ModelicaNode, ResolvableModelicaNode, Reportable

public final class ASTName extends AbstractJjtreeNode<net.sourceforge.pmd.lang.modelica.ast.AbstractModelicaNode,ModelicaNode> implements ResolvableModelicaNode
  • Method Details

    • acceptModelicaVisitor

      protected <P, R> R acceptModelicaVisitor(ModelicaVisitor<? super P,? extends R> visitor, P data)
    • jjtClose

      public void jjtClose()
      Overrides:
      jjtClose in class 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.
    • 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 interface ResolvableModelicaNode
    • getResolvedTo

      public String getResolvedTo()
    • acceptVisitor

      public final <P, R> R acceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
      Specified by:
      acceptVisitor in interface Node
    • getXPathNodeName

      public String getXPathNodeName()
      Specified by:
      getXPathNodeName in interface Node
    • getContainingScope

      public ModelicaScope getContainingScope()
      Description copied from interface: ModelicaNode
      Returns the lexical scope this node is contained in.
      Specified by:
      getContainingScope in interface ModelicaNode
    • getMostSpecificScope

      public ModelicaScope getMostSpecificScope()
      Description copied from interface: ModelicaNode
      Returns the most specific lexical scope naturally associated with this node.
      Specified by:
      getMostSpecificScope in interface ModelicaNode
      Returns:
      the scope defined by this node itself or the same as ModelicaNode.getContainingScope() otherwise