Package | Description |
---|---|
eu.bandm.tools.d2d2.base |
D2d allows to write valid XML documents directly in the creative flow of authoring,
with minimum typographic noise.
|
eu.bandm.tools.umod |
Compiler for data models, from a concise mathematical oriented language into
Java.
|
Modifier and Type | Method and Description |
---|---|
void |
UMod2Def.action(UMod.ClassDef cd) |
Modifier and Type | Field and Description |
---|---|
protected UMod.ClassDef |
UMod.FieldDef.belongsto |
protected UMod.ClassDef |
ReflectiveVisitor.curcd |
protected UMod.ClassDef |
Checker.V_checkNoDoubleFields.curclass |
protected UMod.ClassDef |
UMod2Tsoap.lastDefWithFields |
protected UMod.ClassDef |
UMod2visitors.V_makeRewriterCoRewriter.superclass |
protected UMod.ClassDef |
UMod.ClassDef.superclass |
protected UMod.ClassDef |
UMod2format.Compiler.topleveldef
Needed ONLY for error message generateion.
|
Modifier and Type | Field and Description |
---|---|
protected Set<UMod.ClassDef> |
UMod.Forest.allclassdefs |
protected HashMap<UMod.ClassDef,Format> |
UMod2format.class2format |
protected Map<UMod.ClassDef,GeneratedClass> |
UMod2Tsoap.classdef2parserclass |
protected Map<UMod.ClassDef,Set<List<UMod.FieldDef>>> |
UMod2java.CompileConstructors_20181214.constructorSignatures |
protected Map<UMod.ClassDef,Set<String>> |
UMod2java.CompileConstructors.constructorSignatures |
protected Set<UMod.ClassDef> |
UMod.Forest.has_explicit_0ary_constructor |
protected Set<UMod.ClassDef> |
UMod.Forest.has_implicit_0ary_constructor |
protected List<UMod.ClassDef> |
UMod.ClassDef.subdefs |
protected Map<String,UMod.ClassDef> |
UMod.Forest.topclassdefsbyname |
Modifier and Type | Method and Description |
---|---|
UMod.ClassDef |
Factory.addClassDef(UMod.ClassDef superclass,
String name,
@Opt Location<XMLDocumentIdentifier> loc,
@Opt String doc,
boolean isAlgebraic,
boolean isAbstract)
Add a class definition to the model.
|
protected UMod.ClassDef |
Reducer.find_subclass(UMod.ClassDef sup,
String name) |
protected UMod.ClassDef |
UMod.FieldDef.get_belongsto() |
UMod.ClassDef |
UMod.ClassDef.get_superclass() |
protected UMod.ClassDef |
UMod2format.Compiler.getclassdef(UMod.T_reference t) |
UMod.ClassDef |
ReflectiveVisitor.getSpecialization(Object o)
Finds the most specialized UMOd class definition for a certain object.
|
static UMod.ClassDef |
Types.getUmodClassDef(UMod.Forest f,
UMod.Type t)
NEU 20150419, MUSS ES irrngxwo schon geben !?!?!? FIXME
|
protected UMod.ClassDef |
Reducer.lastinstack() |
Modifier and Type | Method and Description |
---|---|
Set<UMod.ClassDef> |
UMod.Forest.get_allclassdefs() |
List<UMod.ClassDef> |
UMod.ClassDef.get_subdefs() |
Map<String,UMod.ClassDef> |
UMod.Forest.get_topclassdefsbyname() |
Modifier and Type | Method and Description |
---|---|
protected void |
UMod2java.V_compileVerbatimJava.action(UMod.ClassDef cd) |
protected void |
UMod2java.V_compileClassDefs.action(UMod.ClassDef cd) |
protected void |
UMod2java.V_compileFieldDefs.action(UMod.ClassDef cd) |
protected void |
UMod2java.V__compileSwingTree.action(UMod.ClassDef cd) |
protected void |
UMod2java.V_compileAlgebraic.action(UMod.ClassDef cd) |
protected void |
UMod2java.V_compileAlgebraic.SubV.action(UMod.ClassDef cd) |
protected void |
UMod2java.V_compileOrdered.action(UMod.ClassDef cd) |
protected void |
UMod2java.V_compileOrdered.OrderFields.action(UMod.ClassDef f) |
protected void |
UMod2java.V_initFrom.action(UMod.ClassDef cd) |
void |
ReflectiveVisitor.action(UMod.ClassDef cd)
Is possibly called MORE THAN once for each object.
|
protected void |
UMod2visitors.V_compileSimpleActionMethods.action(UMod.ClassDef cd) |
protected void |
UMod2visitors.V_compileMatchCascade.action(UMod.ClassDef cd) |
protected void |
UMod2visitors.V_makeRewriterCoRewriter.action(UMod.ClassDef cd) |
protected void |
Checker.V_checkNoDoubleFields.action(UMod.ClassDef cd) |
void |
Checker.KeyChecker.action(UMod.ClassDef cd) |
protected void |
UMod.Visitor.action(UMod.ClassDef cd) |
protected void |
UMod.Printer.action(UMod.ClassDef i) |
UMod.ClassDef |
Factory.addClassDef(UMod.ClassDef superclass,
String name,
@Opt Location<XMLDocumentIdentifier> loc,
@Opt String doc,
boolean isAlgebraic,
boolean isAbstract)
Add a class definition to the model.
|
UMod.FieldDef |
Factory.addFieldDef(UMod.ClassDef cls,
String name,
UMod.Type fieldType,
@Opt Location<XMLDocumentIdentifier> loc,
@Opt String doc)
Add a field definition to a class definition.
|
void |
Factory.addJavaText(UMod.ClassDef cd,
String text,
@Opt Location<XMLDocumentIdentifier> loc)
Add a verbatim java block, either to a class definition's code, or to the
top-level model classs, if
cd==null . |
void |
Factory.addTostringText(UMod.ClassDef cd,
String text,
@Opt Location<XMLDocumentIdentifier> loc)
Add a standard
toString() method to the class definition's code. |
protected boolean |
UMod2java.CompileConstructors_20181214.checkDuplicateConstructor(UMod.ClassDef cd,
Collection<UMod.FieldDef> signature) |
protected boolean |
UMod2java.CompileConstructors.checkDuplicateConstructor(UMod.ClassDef cd,
String signature) |
protected void |
UMod2java.CompileConstructors_20181214.collectAllObligates(UMod.ClassDef cd) |
protected void |
UMod2java.CompileConstructors_20181214.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.
|
void |
UMod2format.Compiler.compileOnePattern(UMod.ClassDef cd,
GeneratedMethod gm0,
String code,
String initialModel)
Derived method which parses the format code of one
class definition into a tdom, then sets
the current model and its type, and finally calls the base method.
|
protected void |
UMod2java.compilePatterns(UMod.ClassDef cd) |
protected void |
UMod2java.CompileConstructors_20181214.expandOrInherit(UMod.ClassDef cd,
int key,
Collection<UMod.FieldDef> superfields,
int lastIndex) |
protected void |
UMod2java.CompileConstructors.expandOrInherit(UMod.ClassDef cd,
Integer key,
SortedMap<Integer,UMod.FieldDef> superfields) |
protected UMod.ClassDef |
Reducer.find_subclass(UMod.ClassDef sup,
String name) |
protected void |
UMod2Tsoap.ParserGenerator.make_1_parser(UMod.ClassDef cd) |
protected void |
UMod2visitors.make_actionprepost(UMod.ClassDef cd,
GeneratedClass visitor,
UMod.ClassDef superclass) |
protected void |
UMod2visitors.make_dumpcode(GeneratedClass visitor,
UMod.ClassDef cd,
int keynum) |
protected void |
UMod2visitors.make_prepost(GeneratedClass visitor,
String methname,
UMod.ClassDef cd,
UMod.ClassDef superclass) |
protected void |
UMod2visitors.makeCallDescend(GeneratedClass visitor,
UMod.ClassDef cd,
String methodname,
int keynum,
boolean optimizing)
Compiles the method which recursively calls "match()" on all selected
fields, either directly or by calling "descend_
The name of the generated method is "action" in the simple visitor case, or "descend" in the multiphase case. |
protected boolean |
UMod2java.CompileConstructors.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()" |
void |
ReflectiveVisitor.matchModel(UMod.ClassDef cd,
Object o) |
protected void |
UMod2format.process(UMod.ClassDef cd) |
protected void |
UMod2java.CompileConstructors_20181214.process(UMod.ClassDef cd) |
protected void |
UMod2java.CompileConstructors.process(UMod.ClassDef cd) |
protected void |
UMod2Tsoap.WriterGenerator.process(UMod.ClassDef cd) |
protected String |
UMod2Tsoap.TAGSTRING(UMod.ClassDef cd) |
protected boolean |
UMod2java.CompileConstructors.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 void |
UMod2visitors.V_compileMatchCascade.testit(UMod.ClassDef cd,
GeneratedMethod gm) |
protected void |
ReflectiveVisitor.visitFields(UMod.ClassDef cd)
Descend to fields of the current model "model"; this is done
ONLY ONCE for each model.
Fields of superclass are visited BEFORE All fields are visited via their "action()" method This in turn calls "match()" on the TYPE of the field, which finally leads back to a match of the class definition. |
protected void |
UMod2visitors.warnNoVisit(UMod.ClassDef cd,
UMod.FieldDef fd,
boolean isPrim,
boolean isAbstract) |
Constructor and Description |
---|
FieldDef(UMod.ClassDef belongsto,
String ident) |
V_makeRewriterCoRewriter(int k,
GeneratedClass v,
UMod.ClassDef s,
boolean iscorew,
boolean ms) |
see also the complete user documentation .