InterpretedInstance class

Represents an instance of an InterpretedClass at runtime.

Implemented types

Constructors

InterpretedInstance(InterpretedClass klass, {List<RuntimeType>? typeArguments})

Properties

bridgedSuperObject Object?
getter/setter pair
hashCode int
Honour user-defined hashCode so that interpreted instances slot into native Dart hash structures consistently with their ==. Mirror of tom_d4rt InterpretedInstance.hashCode.
no setteroverride
interpretedStatefulWidget InterpretedInstance?
getter/setter pair
klass InterpretedClass
final
nativeProxy Object?
getter/setter pair
nativeStateProxy Object?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
superCallNamedArgs Map<String, Object?>?
getter/setter pair
superCallPositionalArgs List<Object?>?
getter/setter pair
typeArguments List<RuntimeType>?
final
valueType RuntimeType
The runtime type of this value.
no setteroverride

Methods

bindMethodCached(InterpretedFunction method) Callable
Returns the bound tear-off of method for this instance, allocating it once and reusing it on subsequent accesses. See _boundMethodCache.
findOperator(String operatorSymbol) InterpretedFunction?
get(String name, {InterpreterVisitor? visitor}) Object?
Accesses a property or method of this value.
override
getField(String name) Object?
getTypeArguments() List<RuntimeType>?
Get the generic type arguments for this instance
hasInstanceMember(String name) bool
Non-throwing check: does this instance declare an instance member (field, getter, or method) named name?
isValueCompatibleWithTypeArgument(Object? value, int typeArgumentIndex) bool
Check if a value is compatible with the expected generic type at the given index
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(String name, Object? value, [InterpreterVisitor? visitor]) → void
Sets a property of this value.
override
toString() String
A string representation of this object.
override
validateFieldAssignment(String fieldName, Object? value, RuntimeType? expectedType) → void
Validate that a value can be assigned to a field with a specific generic type constraint

Operators

operator ==(Object other) bool
Honour user-defined == so that interpreted instances compare correctly inside native Dart collections (e.g. Set<Cell>, Map<Cell, …>).
override