NumValue class
An AiScript number value.
- Inheritance
- Mixed-in types
Constructors
- NumValue.new(num value, [OriginStatement origin = OriginStatement.none])
Properties
-
attributes
↔ List<
Attribute> ? -
The value's attributes.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMutable ↔ bool
-
Whether the value is mutable.
getter/setter pairinherited
- origin ↔ OriginStatement
-
The statement that this value was returned from.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The type of the value.
no setteroverride
- value → num
-
The value of a primitive value object.
final
Methods
-
cast<
T extends Value> () → T -
Cast a Value to another Value type.
inherited
-
clearOrigin(
) → void -
Sets the origin statement to none
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → num -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited