Constant<T> class

Holds an immutable symbol, the value of which is set once and only once.

Inheritance
Annotations

Constructors

Constant(String? name, T? value)

Properties

hashCode int
The hash code for this object.
no setterinherited
isImmutable bool
If true, then the value of this variable cannot be overwritten.
no setterinherited
isPrivate bool
This flag has no meaning within the context of this library, but if you are implementing some sort of interpreter, you may consider acting based on whether a variable is private.
no setterinherited
name String?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbolTable SymbolTable<T>?
finalinherited
value ↔ T?
getter/setter pairinherited
visibility Visibility
getter/setter pairinherited

Methods

lock() → void
Locks this symbol, and prevents its value from being overwritten.
inherited
markAsPrivate() → void
Marks this symbol as private.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited