Class ASTDefnVal
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.scala.ast.ASTDefnVal
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.Node,ScalaNode<scala.meta.Defn.Val>
public class ASTDefnVal extends net.sourceforge.pmd.lang.ast.AbstractNodeThe ASTDefnVal node implementation.
-
-
Constructor Summary
Constructors Constructor Description ASTDefnVal(scala.meta.Defn.Val scalaNode)Create the AST node for this Scala node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <D,R>
Raccept(ScalaParserVisitor<D,R> visitor, D data)Accept a visitor and traverse this node.Iterable<? extends ScalaNode<?>>children()intgetBeginColumn()intgetBeginLine()ScalaNode<?>getChild(int index)intgetEndColumn()intgetEndLine()TgetNode()Get the underlying Scala Node.ScalaNode<?>getParent()StringgetXPathNodeName()booleanisImplicit()Returns true if the node is implicit.voidtestingOnlySetBeginColumn(int i)voidtestingOnlySetBeginLine(int i)voidtestingOnlySetEndColumn(int i)voidtestingOnlySetEndLine(int i)-
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, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, 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.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getDataFlowNode, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Method Detail
-
accept
public <D,R> R accept(ScalaParserVisitor<D,R> visitor, D data)
Description copied from interface:ScalaNodeAccept a visitor and traverse this node.- Specified by:
acceptin interfaceScalaNode<scala.meta.Defn.Val>- Type Parameters:
D- The type of the data inputR- The type of the returned data- Parameters:
visitor- the visitor to visit this node withdata- context-specific data to pass along- Returns:
- context-specific data for this Visitor pattern
-
isImplicit
public boolean isImplicit()
Description copied from interface:ScalaNodeReturns 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:
isImplicitin interfaceScalaNode<T extends scala.meta.Tree>
-
getBeginLine
public int getBeginLine()
- Specified by:
getBeginLinein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getBeginLinein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getBeginColumn
public int getBeginColumn()
- Specified by:
getBeginColumnin interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getBeginColumnin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getEndLine
public int getEndLine()
- Specified by:
getEndLinein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getEndLinein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getEndColumn
public int getEndColumn()
- Specified by:
getEndColumnin interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getEndColumnin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
testingOnlySetBeginColumn
public void testingOnlySetBeginColumn(int i)
- Overrides:
testingOnlySetBeginColumnin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
testingOnlySetBeginLine
public void testingOnlySetBeginLine(int i)
- Overrides:
testingOnlySetBeginLinein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
testingOnlySetEndColumn
public void testingOnlySetEndColumn(int i)
- Overrides:
testingOnlySetEndColumnin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
testingOnlySetEndLine
public void testingOnlySetEndLine(int i)
- Overrides:
testingOnlySetEndLinein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getNode
public T getNode()
Description copied from interface:ScalaNodeGet the underlying Scala Node.
-
getChild
public ScalaNode<?> getChild(int index)
-
getParent
public ScalaNode<?> getParent()
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeNamein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getXPathNodeNamein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
-