HTClass constructor
HTClass(
- HTInterpreter interpreter, {
- String? id,
- String? classId,
- HTNamespace? closure,
- HTSource? source,
- String? documentation,
- List<
HTGenericTypeParameter> genericTypeParameters = const [], - HTType? superType,
- Iterable<
HTType> withTypes = const [], - Iterable<
HTType> implementsTypes = const [], - bool isExternal = false,
- bool isAbstract = false,
- bool isEnum = false,
- HTClass? superClass,
- bool hasUserDefinedConstructor = false,
Create a default HTClass instance.
Implementation
HTClass(
HTInterpreter interpreter, {
super.id,
super.classId,
HTNamespace? closure,
super.source,
super.documentation,
super.genericTypeParameters = const [],
super.superType,
super.withTypes = const [],
super.implementsTypes = const [],
super.isExternal = false,
super.isAbstract = false,
super.isEnum = false,
this.superClass,
this.hasUserDefinedConstructor = false,
}) : super(closure: closure) {
namespace = HTClassNamespace(
klass: this,
lexicon: interpreter.lexicon,
id: id,
classId: classId,
closure: closure,
source: source,
);
this.interpreter = interpreter;
}