Class ConstantValue
A constant value.
Import path
import codeql.ruby.AST
Direct supertypes
Known direct subtypes
Predicates
getBoolean | Gets the Boolean value, if this is a Boolean. |
getFloat | Gets the float value, if this is a float. |
getInt | Gets the integer value, if this is an integer. |
getRegExp | Gets the regexp value, if this is a regexp. |
getString | Gets the string value, if this is a string. |
getStringlikeValue | Gets the string/symbol/regexp value, if any. |
getSymbol | Gets the symbol value (excluding the |
getValueType | Gets a string describing the type of this constant value. |
isBoolean | Holds if this is the Boolean value |
isComplex | Holds if this is the complex value |
isFloat | Holds if this is the float value |
isInt | Holds if this is the integer value |
isNil | Holds if this is the |
isRational | Holds if this is the rational value |
isRegExp | Holds if this is the regexp value |
isRegExpWithFlags | Holds if this is the regexp value |
isString | Holds if this is the string value |
isStringlikeValue | Holds if this is: - the string value |
isSymbol | Holds if this is the symbol value |
serialize | Gets a (unique) serialized version of this value. |
toString | Gets a textual representation of this constant value. |