Class ASTLitSymbol

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.ast.impl.GenericNode<ScalaNode<?>>, net.sourceforge.pmd.lang.ast.Node, ScalaNode<scala.meta.Lit.Symbol>, net.sourceforge.pmd.reporting.Reportable

    public final class ASTLitSymbol
    extends net.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?>,​ScalaNode<?>>
    The ASTLitSymbol node implementation.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T node  
      • 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
      <P,​R>
      R
      acceptVisitor​(net.sourceforge.pmd.lang.ast.AstVisitor<? super P,​? extends R> visitor, P data)  
      protected <P,​R>
      R
      acceptVisitor​(ScalaVisitor<? super P,​? extends R> visitor, P data)  
      protected void addChild​(net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?> child, int index)  
      int compareLocation​(net.sourceforge.pmd.lang.ast.Node node)  
      net.sourceforge.pmd.lang.document.TextRegion getTextRegion()  
      String getValue()  
      String getXPathNodeName()  
      boolean isImplicit()
      Returns true if the node is implicit.
      • Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode

        children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, insertChild, remove, removeChildAtIndex, setChild, setParent, toString
      • 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.Node

        ancestors, children, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getUserMap, getXPathAttributesIterator, hasImageEqualTo, isFindBoundary
    • Field Detail

      • node

        protected final T extends scala.meta.Tree node
    • Method Detail

      • acceptVisitor

        protected <P,​R> R acceptVisitor​(ScalaVisitor<? super P,​? extends R> visitor,
                                              P data)
      • getValue

        public String getValue()
      • acceptVisitor

        public <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
      • addChild

        protected void addChild​(net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?> child,
                                int index)
        Overrides:
        addChild in class net.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?>,​ScalaNode<?>>
      • isImplicit

        public boolean isImplicit()
        Description copied from interface: ScalaNode
        Returns true if the node is implicit. If this node has no non-implicit descendant, then its text bounds identify an empty region of the source document. In that case, the end column is smaller than the begin column. That's because the end column index is inclusive.
        Specified by:
        isImplicit in interface ScalaNode<T extends scala.meta.Tree>
      • getTextRegion

        public net.sourceforge.pmd.lang.document.TextRegion getTextRegion()
        Specified by:
        getTextRegion in interface net.sourceforge.pmd.lang.ast.Node
      • compareLocation

        public int compareLocation​(net.sourceforge.pmd.lang.ast.Node node)
        Specified by:
        compareLocation in interface net.sourceforge.pmd.lang.ast.Node
      • getXPathNodeName

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