Interface NumericLiteral
-
- All Superinterfaces:
Expression,Tree
- All Known Implementing Classes:
NumericLiteralImpl
public interface NumericLiteral extends Expression
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longvalueAsLong()StringvalueAsString()-
Methods inherited from interface org.sonar.plugins.python.api.tree.Expression
type
-
-
-
-
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.
-
-