Uses of Class
eu.bandm.tools.umod.UMod.ClassDef
Package
Description
D2d allows to write valid XML documents directly in the creative flow of authoring,
with minimum typographic noise.
Compiler for data models, from a concise mathematical oriented language into
Java.
-
Uses of UMod.ClassDef in eu.bandm.tools.d2d2.base
-
Uses of UMod.ClassDef in eu.bandm.tools.umod
Modifier and TypeFieldDescriptionprotected UMod.ClassDef
UMod.FieldDef.belongsto
protected UMod.ClassDef
ReflectiveVisitor.curcd
protected UMod.ClassDef
Checker.V_checkNoDoubleFields.curclass
(package private) UMod.ClassDef
UMod2java.V_compileFieldDefs.curclass
protected UMod.ClassDef
UMod2Tsoap.lastDefWithFields
protected UMod.ClassDef
UMod.ClassDef.superclass
protected UMod.ClassDef
UMod2visitors.V_makeRewriterCoRewriter.superclass
protected UMod.ClassDef
UMod2format.Compiler.topleveldef
Needed ONLY for error message generateion.(package private) UMod.ClassDef
UMod2java.V_compileOrdered.topOrdered
Modifier and TypeFieldDescriptionprotected Set<UMod.ClassDef>
UMod.Forest.allclassdefs
(package private) Map<UMod.ClassDef,
List<UMod.FieldDef>> UMod2java.CompileConstructors_20181214.allObligates
protected HashMap<UMod.ClassDef,
Format> UMod2format.class2format
protected Map<UMod.ClassDef,
GeneratedClass> UMod2Tsoap.classdef2parserclass
(package private) List<UMod.ClassDef>
Reducer.classstack
protected Map<UMod.ClassDef,
Set<List<UMod.FieldDef>>> UMod2java.CompileConstructors_20181214.constructorSignatures
protected Map<UMod.ClassDef,
Set<String>> UMod2java.CompileConstructors.constructorSignatures
(package private) Map<UMod.ClassDef,
List<UMod.FieldDef>> UMod2java.CompileConstructors_20181214.firstMinimalConstructor
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 TypeMethodDescriptionFactory.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.get_superclass()
protected UMod.ClassDef
UMod2format.Compiler.getclassdef
(UMod.T_reference t) 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 !?!?!? FIXMEprotected UMod.ClassDef
Reducer.lastinstack()
Modifier and TypeMethodDescription(package private) static final Predicate<UMod.ClassDef>
UMod2visitors.appearsInVisitor
(int i) UMod.Forest.get_allclassdefs()
UMod.ClassDef.get_subdefs()
UMod.Forest.get_topclassdefsbyname()
Modifier and TypeMethodDescriptionvoid
Checker.KeyChecker.action
(UMod.ClassDef cd) protected void
Checker.V_checkNoDoubleFields.action
(UMod.ClassDef cd) void
ReflectiveVisitor.action
(UMod.ClassDef cd) Is possibly called MORE THAN once for each object.protected void
UMod.Printer.action
(UMod.ClassDef i) protected void
UMod.Visitor.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_compileClassDefs.action
(UMod.ClassDef cd) protected void
UMod2java.V_compileFieldDefs.action
(UMod.ClassDef cd) SetsUMod2java.V_compileFieldDefs.curclass
and descends to field defs and sub class defs.protected void
UMod2java.V_compileOrdered.action
(UMod.ClassDef cd) protected void
UMod2java.V_compileOrdered.OrderFields.action
(UMod.ClassDef f) protected void
UMod2java.V_compileVerbatimJava.action
(UMod.ClassDef cd) protected void
UMod2java.V_initFrom.action
(UMod.ClassDef cd) protected void
UMod2visitors.V_compileMatchCascade.action
(UMod.ClassDef cd) protected void
UMod2visitors.V_compileSimpleActionMethods.action
(UMod.ClassDef cd) protected void
UMod2visitors.V_makeRewriterCoRewriter.action
(UMod.ClassDef cd) 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.Factory.addFieldDef
(UMod.ClassDef cls, String name, UMod.ClassDef fieldType, @Opt Location<XMLDocumentIdentifier> loc, @Opt String doc) 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, ifcd==null
.void
Factory.addTostringText
(UMod.ClassDef cd, String text, @Opt Location<XMLDocumentIdentifier> loc) Add a standardtoString()
method to the class definition's code.(package private) void
UMod2visitors.checkDescendableAndMakeDescendMethod
(UMod.ClassDef cd, UMod.FieldDef fd) Deprecated.use the "follow_[fieldname]([class])" and "followAll_[fieldname]([class])" methods in the visitors instead.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) (package private) void
UMod2Html.putClass
(UMod.ClassDef cd, int indent) (package private) void
UMod2Html.putField
(UMod.ClassDef cd, UMod.FieldDef fd) (package private) void
UMod2Html.putSubclasses
(UMod.ClassDef sup, int indent) Alphabetical !?! better use Source order??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.Otherwise: if there are no obligate fields without initial value, a new 0ary constructor is generated, and "true" returned. Otherwise returns false. 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) Emit a warning or an error for not-visitbable field, erronuously selected by aV ../..
pragma.ModifierConstructorDescriptionFieldDef
(UMod.ClassDef belongsto, String ident) V_makeRewriterCoRewriter
(int k, GeneratedClass v, UMod.ClassDef s, boolean iscorew, boolean ms)