Package eu.bandm.tools.umod
Class UMod2java.CompileConstructors_20181214
java.lang.Object
eu.bandm.tools.umod.UMod2java.CompileConstructors_20181214
- Enclosing class:
- UMod2java
-
Field Summary
Modifier and TypeFieldDescription(package private) Map<UMod.ClassDef,
List<UMod.FieldDef>> protected Map<UMod.ClassDef,
Set<List<UMod.FieldDef>>> protected final List<UMod.FieldDef>
(package private) Map<UMod.ClassDef,
List<UMod.FieldDef>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkDuplicateConstructor
(UMod.ClassDef cd, Collection<UMod.FieldDef> signature) protected void
protected void
compileConstructor
(UMod.ClassDef cd, @Opt Integer key, Collection<UMod.FieldDef> allParams, @Opt Collection<UMod.FieldDef> superParams) When this is called: no obligate fields are missing.protected void
expandOrInherit
(UMod.ClassDef cd, int key, Collection<UMod.FieldDef> superfields, int lastIndex) protected void
process
(UMod.ClassDef cd) protected void
process
(UMod.Forest model)
-
Field Details
-
EMPTYLIST
-
allObligates
Map<UMod.ClassDef,List<UMod.FieldDef>> allObligates -
firstMinimalConstructor
Map<UMod.ClassDef,List<UMod.FieldDef>> firstMinimalConstructor -
constructorSignatures
-
-
Constructor Details
-
CompileConstructors_20181214
protected CompileConstructors_20181214()
-
-
Method Details
-
collectAllObligates
-
checkDuplicateConstructor
-
process
-
process
-
compileConstructor
protected void compileConstructor(UMod.ClassDef cd, @Opt @Opt Integer key, Collection<UMod.FieldDef> allParams, @Opt @Opt Collection<UMod.FieldDef> superParams) When this is called: no obligate fields are missing.- Parameters:
superParams
- is only !=null when called from expandOrInherit(). Otherwise take firstMinimalConstructor.get(..) as signature of super constructor.
-
expandOrInherit
protected void expandOrInherit(UMod.ClassDef cd, int key, Collection<UMod.FieldDef> superfields, int lastIndex)
-