InterpretedClass constructor
InterpretedClass(
- String name,
- InterpretedClass? superclass,
- Environment classDefinitionEnvironment,
- List<
SFieldDeclaration> fieldDeclarations, - Map<
String, InterpretedFunction> methods, - Map<
String, InterpretedFunction> getters, - Map<
String, InterpretedFunction> setters, - Map<
String, InterpretedFunction> staticMethods, - Map<
String, InterpretedFunction> staticGetters, - Map<
String, InterpretedFunction> staticSetters, - Map<
String, Object?> staticFields, - Map<
String, InterpretedFunction> constructors, - Map<
String, InterpretedFunction> operators, { - bool isAbstract = false,
- List<
InterpretedClass> ? interfaces, - bool isMixin = false,
- List<
RuntimeType> ? onClauseTypes, - List<
InterpretedClass> ? mixins, - List<
BridgedClass> ? bridgedMixins, - List<
BridgedClass> ? bridgedInterfaces, - bool isFinal = false,
- bool isInterface = false,
- bool isBase = false,
- bool isSealed = false,
- BridgedClass? bridgedSuperclass,
- List<
String> typeParameterNames = const [], - Map<
String, RuntimeType?> typeParameterBounds = const {},
Implementation
InterpretedClass(
this.name,
this.superclass,
this.classDefinitionEnvironment,
this.fieldDeclarations,
// Ensure all maps are passed and assigned
this.methods,
this.getters,
this.setters,
this.staticMethods,
this.staticGetters,
this.staticSetters,
this.staticFields,
this.constructors,
this.operators, {
this.isAbstract = false,
List<InterpretedClass>? interfaces,
this.isMixin = false,
List<RuntimeType>? onClauseTypes,
List<InterpretedClass>? mixins,
List<BridgedClass>? bridgedMixins,
List<BridgedClass>? bridgedInterfaces,
// Initialize class modifiers (default to false)
this.isFinal = false,
this.isInterface = false,
this.isBase = false,
this.isSealed = false,
// Initialize bridged superclass
this.bridgedSuperclass, // Can be null
// Add type parameter information
this.typeParameterNames = const [],
this.typeParameterBounds = const {},
}) : interfaces = interfaces ?? [],
onClauseTypes = onClauseTypes ?? [],
mixins = mixins ?? [],
bridgedMixins = bridgedMixins ?? [],
bridgedInterfaces = bridgedInterfaces ?? [];