Class ASTLitInt
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?>,ScalaNode<?>>
-
- net.sourceforge.pmd.lang.scala.ast.ASTLitInt
-
- All Implemented Interfaces:
GenericNode<ScalaNode<?>>
,Node
,ScalaNode<scala.meta.Lit.Int>
,Reportable
public final class ASTLitInt extends AbstractNode<net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?>,ScalaNode<?>>
The ASTLitInt 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>
RacceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
protected <P,R>
RacceptVisitor(ScalaVisitor<? super P,? extends R> visitor, P data)
protected void
addChild(net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?> child, int index)
int
compareLocation(Node node)
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 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)
-
getValue
public String getValue()
-
acceptVisitor
public <P,R> R acceptVisitor(AstVisitor<? super P,? extends R> visitor, P data)
- Specified by:
acceptVisitor
in interfaceNode
-
addChild
protected void addChild(net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?> child, int index)
- Overrides:
addChild
in classAbstractNode<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 interfaceScalaNode<T extends scala.meta.Tree>
-
getTextRegion
public TextRegion getTextRegion()
- Specified by:
getTextRegion
in interfaceNode
-
compareLocation
public int compareLocation(Node node)
- Specified by:
compareLocation
in interfaceNode
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfaceNode
-
-