Package org.sonar.python.api.tree
Interface PyNumericLiteralTree
-
- All Superinterfaces:
PyExpressionTree,Tree
- All Known Implementing Classes:
PyNumericLiteralTreeImpl
public interface PyNumericLiteralTree extends PyExpressionTree
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longvalueAsLong()StringvalueAsString()
-
-
-
Method Detail
-
valueAsLong
long valueAsLong()
- Returns:
- the value of this literal as a long.
- Throws:
NumberFormatException- if the literal cannot be parsed as a long.
-
valueAsString
String valueAsString()
- Returns:
- the token value of this literal.
-
-