Class ASTTermTuple
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.scala.ast.ASTTermTuple
-
public class ASTTermTuple extends AbstractNode
The ASTTermTuple node implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected T
node
-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
-
-
Constructor Summary
Constructors Constructor Description ASTTermTuple(scala.meta.Term.Tuple scalaNode)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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()
int
getBeginColumn()
int
getBeginLine()
ScalaNode<?>
getChild(int index)
int
getEndColumn()
int
getEndLine()
T
getNode()
Deprecated.ScalaNode<?>
getParent()
String
getXPathNodeName()
boolean
isImplicit()
Returns true if the node is implicit.void
testingOnlySetBeginColumn(int i)
Deprecated.void
testingOnlySetBeginLine(int i)
Deprecated.void
testingOnlySetEndColumn(int i)
Deprecated.void
testingOnlySetEndLine(int i)
Deprecated.-
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
-
-
-
-
Constructor Detail
-
ASTTermTuple
@Deprecated @InternalApi public ASTTermTuple(scala.meta.Term.Tuple scalaNode)
Deprecated.
-
-
Method Detail
-
accept
public <D,R> R accept(ScalaParserVisitor<D,R> visitor, D data)
Description copied from interface:ScalaNode
Accept a visitor and traverse this node.- Specified by:
accept
in interfaceScalaNode<scala.meta.Term.Tuple>
- 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: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 interfaceScalaNode<T extends scala.meta.Tree>
-
getBeginLine
public int getBeginLine()
- Specified by:
getBeginLine
in interfaceNode
- Overrides:
getBeginLine
in classAbstractNode
-
getBeginColumn
public int getBeginColumn()
- Specified by:
getBeginColumn
in interfaceNode
- Overrides:
getBeginColumn
in classAbstractNode
-
getEndLine
public int getEndLine()
- Specified by:
getEndLine
in interfaceNode
- Overrides:
getEndLine
in classAbstractNode
-
getEndColumn
public int getEndColumn()
- Specified by:
getEndColumn
in interfaceNode
- Overrides:
getEndColumn
in classAbstractNode
-
testingOnlySetBeginColumn
@Deprecated public void testingOnlySetBeginColumn(int i)
Deprecated.- Overrides:
testingOnlySetBeginColumn
in classAbstractNode
-
testingOnlySetBeginLine
@Deprecated public void testingOnlySetBeginLine(int i)
Deprecated.- Overrides:
testingOnlySetBeginLine
in classAbstractNode
-
testingOnlySetEndColumn
@Deprecated public void testingOnlySetEndColumn(int i)
Deprecated.- Overrides:
testingOnlySetEndColumn
in classAbstractNode
-
testingOnlySetEndLine
@Deprecated public void testingOnlySetEndLine(int i)
Deprecated.- Overrides:
testingOnlySetEndLine
in classAbstractNode
-
getNode
@Deprecated public T getNode()
Deprecated.Description copied from interface:ScalaNode
Get the underlying Scala Node.
-
getChild
public ScalaNode<?> getChild(int index)
-
getParent
public ScalaNode<?> getParent()
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfaceNode
- Overrides:
getXPathNodeName
in classAbstractNode
-
-