Package org.sonar.python.tree
Class NumericLiteralImpl
java.lang.Object
org.sonar.python.tree.PyTree
org.sonar.python.tree.NumericLiteralImpl
- All Implemented Interfaces:
Expression,NumericLiteral,Tree
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken -
Method Summary
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
Method Details
-
getKind
-
accept
-
valueAsLong
public long valueAsLong()- Specified by:
valueAsLongin interfaceNumericLiteral- Returns:
- the value of this literal as a long.
-
valueAsString
- Specified by:
valueAsStringin interfaceNumericLiteral- Returns:
- the token value of this literal.
-
computeChildren
-
type
- Specified by:
typein interfaceExpression
-