Class ASTLitFloat
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?>,ScalaNode<?>>
-
- net.sourceforge.pmd.lang.scala.ast.ASTLitFloat
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.impl.GenericNode<ScalaNode<?>>
,net.sourceforge.pmd.lang.ast.Node
,ScalaNode<scala.meta.Lit.Float>
,net.sourceforge.pmd.reporting.Reportable
public final class ASTLitFloat extends net.sourceforge.pmd.lang.ast.impl.AbstractNode<net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?>,ScalaNode<?>>
The ASTLitFloat node implementation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <P,R>
RacceptVisitor(net.sourceforge.pmd.lang.ast.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(net.sourceforge.pmd.lang.ast.Node node)
net.sourceforge.pmd.lang.document.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(net.sourceforge.pmd.lang.ast.AstVisitor<? super P,? extends R> visitor, P data)
- Specified by:
acceptVisitor
in interfacenet.sourceforge.pmd.lang.ast.Node
-
addChild
protected void addChild(net.sourceforge.pmd.lang.scala.ast.AbstractScalaNode<?> child, int index)
- Overrides:
addChild
in classnet.sourceforge.pmd.lang.ast.impl.AbstractNode<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 net.sourceforge.pmd.lang.document.TextRegion getTextRegion()
- Specified by:
getTextRegion
in interfacenet.sourceforge.pmd.lang.ast.Node
-
compareLocation
public int compareLocation(net.sourceforge.pmd.lang.ast.Node node)
- Specified by:
compareLocation
in interfacenet.sourceforge.pmd.lang.ast.Node
-
getXPathNodeName
public String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfacenet.sourceforge.pmd.lang.ast.Node
-
-