Class ASTTermWhile
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?>,ScalaNode<?>>
-
- net.sourceforge.pmd.lang.scala.ast.ASTTermWhile
-
- All Implemented Interfaces:
GenericNode<ScalaNode<?>>,Node,ScalaNode<scala.meta.Term.While>,Reportable
public final class ASTTermWhile extends AbstractNode<net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?>,ScalaNode<?>>
The ASTTermWhile node implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected Tnode-
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>
RacceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)protected <P,R>
RacceptVisitor(ScalaVisitor<? super P,? extends R> visitor, P data)protected voidaddChild(net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?> child, int index)intcompareLocation(Node node)TextRegiongetTextRegion()StringgetXPathNodeName()booleanisImplicit()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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Method Detail
-
acceptVisitor
protected <P,R> R acceptVisitor(ScalaVisitor<? super P,? extends R> visitor, P data)
-
acceptVisitor
public <P,R> R acceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
- Specified by:
acceptVisitorin interfaceNode
-
addChild
protected void addChild(net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?> child, int index)- Overrides:
addChildin classAbstractNode<net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?>,ScalaNode<?>>
-
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>
-
getTextRegion
public TextRegion getTextRegion()
- Specified by:
getTextRegionin interfaceNode
-
compareLocation
public int compareLocation(Node node)
- Specified by:
compareLocationin interfaceNode
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeNamein interfaceNode
-
-