Package org.sonar.python.tree
Class PyNumericLiteralTreeImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.PyNumericLiteralTreeImpl
-
- All Implemented Interfaces:
PyExpressionTree,PyNumericLiteralTree,Tree
public class PyNumericLiteralTreeImpl extends PyTree implements PyNumericLiteralTree
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PyTreeVisitor visitor)List<Tree>children()Tree.KindgetKind()longvalueAsLong()StringvalueAsString()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
-
-
-
Method Detail
-
accept
public void accept(PyTreeVisitor visitor)
-
valueAsLong
public long valueAsLong()
- Specified by:
valueAsLongin interfacePyNumericLiteralTree- Returns:
- the value of this literal as a long.
-
valueAsString
public String valueAsString()
- Specified by:
valueAsStringin interfacePyNumericLiteralTree- Returns:
- the token value of this literal.
-
-