Interface ScalaNode<T extends scala.meta.Tree>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <D,​R>
      R
      accept​(ScalaParserVisitor<D,​R> visitor, D data)
      Accept a visitor and traverse this node.
      T getNode()
      Get the underlying Scala Node.
      boolean isImplicit()
      Returns true if the node is implicit.
      ScalaNode<?> jjtGetChild​(int idx)  
      ScalaNode<?> jjtGetParent()  
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.Node

        findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
    • Method Detail

      • accept

        <D,​R> R accept​(ScalaParserVisitor<D,​R> visitor,
                             D data)
        Accept a visitor and traverse this node.
        Type Parameters:
        D - The type of the data input
        R - The type of the returned data
        Parameters:
        visitor - the visitor to visit this node with
        data - context-specific data to pass along
        Returns:
        context-specific data for this Visitor pattern
      • getNode

        T getNode()
        Get the underlying Scala Node.
        Returns:
        the Scala Node for this node
      • isImplicit

        boolean isImplicit()
        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.
      • jjtGetChild

        ScalaNode<?> jjtGetChild​(int idx)
        Specified by:
        jjtGetChild in interface net.sourceforge.pmd.lang.ast.Node
      • jjtGetParent

        ScalaNode<?> jjtGetParent()
        Specified by:
        jjtGetParent in interface net.sourceforge.pmd.lang.ast.Node