JavaClass constructor
JavaClass({
- String className = '',
- String? parentClass,
- List<
String> generics = const [], - List<
Variable> publicFields = const [], - List<
Variable> privateFields = const [], - List<
Variable> fieldGettersAndSetters = const [], - InjectCodeUnit? injectedJavaCodes,
- List<
Method> methods = const [], - bool isPublic = false,
- bool isInterface = false,
- bool isStatic = false,
- bool hasToMap = false,
- bool hasFromMap = false,
- int depth = 0,
Implementation
JavaClass(
{this.className = '',
this.parentClass,
this.generics = const [],
this.publicFields = const [],
this.privateFields = const [],
this.fieldGettersAndSetters = const [],
this.injectedJavaCodes,
this.methods = const [],
this.isPublic = false,
this.isInterface = false,
this.isStatic = false,
this.hasToMap = false,
this.hasFromMap = false,
int depth = 0})
: assert(className.isNotEmpty),
super(depth);