CodeQL library for Ruby
codeql/ruby-all 2.0.4-dev (changelog, source)
Search

Class ConstantValue::ConstantComplexValue

A constant complex value.

Import path

import codeql.ruby.AST

Direct supertypes

Indirect supertypes

Inherited predicates

getBoolean

Gets the Boolean value, if this is a Boolean.

from ConstantValue
getFloat

Gets the float value, if this is a float.

from ConstantValue
getInt

Gets the integer value, if this is an integer.

from ConstantValue
getRegExp

Gets the regexp value, if this is a regexp.

from ConstantValue
getString

Gets the string value, if this is a string.

from ConstantValue
getStringlikeValue

Gets the string/symbol/regexp value, if any.

from ConstantValue
getSymbol

Gets the symbol value (excluding the : prefix), if this is a symbol.

from ConstantValue
getValueType

Gets a string describing the type of this constant value.

from ConstantValue
isBoolean

Holds if this is the Boolean value b.

from ConstantValue
isComplex

Holds if this is the complex value real + imaginary * i.

from ConstantValue
isFloat

Holds if this is the float value f.

from ConstantValue
isInt

Holds if this is the integer value i.

from ConstantValue
isNil

Holds if this is the nil value.

from ConstantValue
isRational

Holds if this is the rational value numerator / denominator.

from ConstantValue
isRegExp

Holds if this is the regexp value /s/, ignoring any flags.

from ConstantValue
isRegExpWithFlags

Holds if this is the regexp value /s/flags .

from ConstantValue
isString

Holds if this is the string value s.

from ConstantValue
isStringlikeValue

Holds if this is: - the string value s, - the symbol value :s, or - the regexp value /s/.

from ConstantValue
isSymbol

Holds if this is the symbol value :s.

from ConstantValue
serialize

Gets a (unique) serialized version of this value.

from ConstantValue
toString

Gets a textual representation of this constant value.

from ConstantValue