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
Nested Classes -
Field Summary
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TreeVisitor visitor) getKind()type()typeV2()voidtypeV2(PythonType type) longMethods 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
-
numericKind
-
typeV2
- Specified by:
typeV2in interfaceExpression
-
typeV2
-