Interface NumericLiteral
- All Superinterfaces:
Expression,Tree
- All Known Implementing Classes:
NumericLiteralImpl
-
Nested Class Summary
-
Method Summary
Methods inherited from interface org.sonar.plugins.python.api.tree.Expression
type, typeV2
-
Method Details
-
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.
-