Modifier and Type | Field and Description |
---|---|
protected Map<UMod.ClassDef,Set<String>> |
constructorSignatures |
protected List<UMod.FieldDef> |
EMPTYLIST |
Modifier | Constructor and Description |
---|---|
protected |
CompileConstructors() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkDuplicateConstructor(UMod.ClassDef cd,
String signature) |
protected void |
expandOrInherit(UMod.ClassDef cd,
Integer key,
SortedMap<Integer,UMod.FieldDef> superfields) |
protected boolean |
makeconstructor(UMod.ClassDef cd,
Integer key,
Collection<UMod.FieldDef> inherited,
Collection<UMod.FieldDef> newparams)
Generates a constructor with signature "inherited+newparams".
Compiles a call to "super()" for the former and assignment statements for the latter(). ASSUME "Collection" is ordered, since it is "aTreeMap.values()" |
protected void |
process(UMod.ClassDef cd) |
protected void |
process(UMod.Forest model) |
protected boolean |
test_0ary_constructor(UMod.ClassDef cd)
Returns true immediately
if a 0ary constructor is defined by the user explictly (in verbatim Java code), or
already implicitly generated by this routine.
|
protected final List<UMod.FieldDef> EMPTYLIST
protected Map<UMod.ClassDef,Set<String>> constructorSignatures
protected boolean test_0ary_constructor(UMod.ClassDef cd)
protected void process(UMod.Forest model)
protected void process(UMod.ClassDef cd)
protected void expandOrInherit(UMod.ClassDef cd, Integer key, SortedMap<Integer,UMod.FieldDef> superfields)
protected boolean checkDuplicateConstructor(UMod.ClassDef cd, String signature)
protected boolean makeconstructor(UMod.ClassDef cd, Integer key, Collection<UMod.FieldDef> inherited, Collection<UMod.FieldDef> newparams)
see also the complete user documentation .