Class NumericValue
A class representing numbers (ints and floats), either present in the source as a literal, or in a builtin as a value.
Import path
import python
Direct supertypes
Indirect supertypes
Predicates
getFloatValue | Gets the float-value if it is a constant float |
getIntValue | Gets the integer-value if it is a constant integer, and it fits in a QL int |
Inherited predicates
attr | Gets a | from Value |
getABooleanValue | Gets the boolean interpretation of this value. Could be both | from Value |
getACall | Gets a call to this object | from Value |
getACall | Gets a call to this object with the given | from Value |
getAReference | Gets a | from Value |
getClass | Gets the class of this object. Strictly, the | from Value |
getDefiniteBooleanValue | Gets the boolean interpretation of this value, only if we can determine the result precisely. The result can be | from Value |
getName | Gets the name of this value, if it has one. Note this is the innate name of the object, not necessarily all the names by which it can be called. | from Value |
getOrigin | Gets the origin CFG node for this value. | from Value |
hasAttribute | Holds if this value has the attribute | from Value |
hasLocationInfo | Holds if this element is at the specified location. The location spans column | from Value |
isAbsent | Whether this value is absent from the database, but has been inferred to likely exist | from Value |
isBuiltin | Holds if this value is builtin. Applies to built-in functions and methods, but also integers and strings. | from Value |
overrides | Whether this overrides v. In this context, “overrides” means that this object is a named attribute of a some class C and | from Value |
toString | Gets a textual representation of this element. | from Value |