Instance class final

An instance of a Lox Class.

Constructors

Instance.new(Class class_)
Creates a new instance of class_.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(Token name) Object?
Gets the property in the instance with the given name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(Token name, Object? value) → void
Set the field with given name to value.
toString() String
A string representation of this object.
override

Operators

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