Uses of Class
eu.bandm.tools.umod.UMod.ClassDef
Packages that use 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
Methods in eu.bandm.tools.d2d2.base with parameters of type UMod.ClassDef -
Uses of UMod.ClassDef in eu.bandm.tools.umod
Fields in eu.bandm.tools.umod declared as UMod.ClassDefModifier and TypeFieldDescriptionprotected UMod.ClassDefUMod.FieldDef.belongstoprotected UMod.ClassDefReflectiveVisitor.curcdprotected UMod.ClassDefChecker.V_checkNoDoubleFields.curclass(package private) UMod.ClassDefUMod2java.V_compileFieldDefs.curclassprotected UMod.ClassDefUMod2Tsoap.lastDefWithFieldsprotected UMod.ClassDefUMod.ClassDef.superclassprotected UMod.ClassDefUMod2visitors.V_makeRewriterCoRewriter.superclassprotected UMod.ClassDefUMod2format.Compiler.topleveldefNeeded ONLY for error message generateion.(package private) UMod.ClassDefUMod2java.V_compileOrdered.topOrderedFields in eu.bandm.tools.umod with type parameters of type UMod.ClassDefModifier and TypeFieldDescriptionprotected Set<UMod.ClassDef> UMod.Forest.allclassdefs(package private) Map<UMod.ClassDef, List<UMod.FieldDef>> UMod2java.CompileConstructors_20181214.allObligatesprotected HashMap<UMod.ClassDef, Format> UMod2format.class2formatprotected Map<UMod.ClassDef, GeneratedClass> UMod2Tsoap.classdef2parserclass(package private) List<UMod.ClassDef> Reducer.classstackprotected Map<UMod.ClassDef, Set<List<UMod.FieldDef>>> UMod2java.CompileConstructors_20181214.constructorSignaturesprotected Map<UMod.ClassDef, Set<String>> UMod2java.CompileConstructors.constructorSignatures(package private) Map<UMod.ClassDef, List<UMod.FieldDef>> UMod2java.CompileConstructors_20181214.firstMinimalConstructorprotected Set<UMod.ClassDef> UMod.Forest.has_explicit_0ary_constructorprotected Set<UMod.ClassDef> UMod.Forest.has_implicit_0ary_constructorprotected List<UMod.ClassDef> UMod.ClassDef.subdefsprotected Map<String, UMod.ClassDef> UMod.Forest.topclassdefsbynameMethods in eu.bandm.tools.umod that return UMod.ClassDefModifier 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.ClassDefReducer.find_subclass(UMod.ClassDef sup, String name) protected UMod.ClassDefUMod.FieldDef.get_belongsto()UMod.ClassDef.get_superclass()protected UMod.ClassDefUMod2format.Compiler.getclassdef(UMod.T_reference t) ReflectiveVisitor.getSpecialization(Object o) Finds the most specialized UMOd class definition for a certain object.static UMod.ClassDefTypes.getUmodClassDef(UMod.Forest f, UMod.Type t) NEU 20150419, MUSS ES irrngxwo schon geben !?!?!? FIXMEprotected UMod.ClassDefReducer.lastinstack()Methods in eu.bandm.tools.umod that return types with arguments of type UMod.ClassDefModifier 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()Methods in eu.bandm.tools.umod with parameters of type UMod.ClassDefModifier and TypeMethodDescriptionvoidChecker.KeyChecker.action(UMod.ClassDef cd) protected voidChecker.V_checkNoDoubleFields.action(UMod.ClassDef cd) voidReflectiveVisitor.action(UMod.ClassDef cd) Is possibly called MORE THAN once for each object.protected voidUMod.Printer.action(UMod.ClassDef i) protected voidUMod.Visitor.action(UMod.ClassDef cd) protected voidUMod2java.V__compileSwingTree.action(UMod.ClassDef cd) protected voidUMod2java.V_compileAlgebraic.action(UMod.ClassDef cd) protected voidUMod2java.V_compileAlgebraic.SubV.action(UMod.ClassDef cd) protected voidUMod2java.V_compileClassDefs.action(UMod.ClassDef cd) protected voidUMod2java.V_compileFieldDefs.action(UMod.ClassDef cd) SetsUMod2java.V_compileFieldDefs.curclassand descends to field defs and sub class defs.protected voidUMod2java.V_compileOrdered.action(UMod.ClassDef cd) protected voidUMod2java.V_compileOrdered.OrderFields.action(UMod.ClassDef f) protected voidUMod2java.V_compileVerbatimJava.action(UMod.ClassDef cd) protected voidUMod2java.V_initFrom.action(UMod.ClassDef cd) protected voidUMod2visitors.V_compileMatchCascade.action(UMod.ClassDef cd) protected voidUMod2visitors.V_compileSimpleActionMethods.action(UMod.ClassDef cd) protected voidUMod2visitors.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.voidFactory.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.voidFactory.addTostringText(UMod.ClassDef cd, String text, @Opt Location<XMLDocumentIdentifier> loc) Add a standardtoString()method to the class definition's code.(package private) voidUMod2visitors.checkDescendableAndMakeDescendMethod(UMod.ClassDef cd, UMod.FieldDef fd) Deprecated.use the "follow_[fieldname]([class])" and "followAll_[fieldname]([class])" methods in the visitors instead.protected booleanUMod2java.CompileConstructors_20181214.checkDuplicateConstructor(UMod.ClassDef cd, Collection<UMod.FieldDef> signature) protected booleanUMod2java.CompileConstructors.checkDuplicateConstructor(UMod.ClassDef cd, String signature) protected voidUMod2java.CompileConstructors_20181214.collectAllObligates(UMod.ClassDef cd) protected voidUMod2java.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.voidUMod2format.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 voidUMod2java.compilePatterns(UMod.ClassDef cd) protected voidUMod2java.CompileConstructors_20181214.expandOrInherit(UMod.ClassDef cd, int key, Collection<UMod.FieldDef> superfields, int lastIndex) protected voidUMod2java.CompileConstructors.expandOrInherit(UMod.ClassDef cd, Integer key, SortedMap<Integer, UMod.FieldDef> superfields) protected UMod.ClassDefReducer.find_subclass(UMod.ClassDef sup, String name) protected voidUMod2Tsoap.ParserGenerator.make_1_parser(UMod.ClassDef cd) protected voidUMod2visitors.make_actionprepost(UMod.ClassDef cd, GeneratedClass visitor, UMod.ClassDef superclass) protected voidUMod2visitors.make_dumpcode(GeneratedClass visitor, UMod.ClassDef cd, int keynum) protected voidUMod2visitors.make_prepost(GeneratedClass visitor, String methname, UMod.ClassDef cd, UMod.ClassDef superclass) protected voidUMod2visitors.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_[fieldname]()".
The name of the generated method is "action" in the simple visitor case, or "descend" in the multiphase case.protected booleanUMod2java.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()"voidReflectiveVisitor.matchModel(UMod.ClassDef cd, Object o) protected voidUMod2format.process(UMod.ClassDef cd) protected voidUMod2java.CompileConstructors_20181214.process(UMod.ClassDef cd) protected voidUMod2java.CompileConstructors.process(UMod.ClassDef cd) protected voidUMod2Tsoap.WriterGenerator.process(UMod.ClassDef cd) (package private) voidUMod2Html.putClass(UMod.ClassDef cd, int indent) (package private) voidUMod2Html.putField(UMod.ClassDef cd, UMod.FieldDef fd) (package private) voidUMod2Html.putSubclasses(UMod.ClassDef sup, int indent) Alphabetical !?! better use Source order??protected StringUMod2Tsoap.TAGSTRING(UMod.ClassDef cd) protected booleanUMod2java.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 voidUMod2visitors.V_compileMatchCascade.testit(UMod.ClassDef cd, GeneratedMethod gm) protected voidReflectiveVisitor.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 voidUMod2visitors.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.Constructors in eu.bandm.tools.umod with parameters of type UMod.ClassDefModifierConstructorDescriptionFieldDef(UMod.ClassDef belongsto, String ident) V_makeRewriterCoRewriter(int k, GeneratedClass v, UMod.ClassDef s, boolean iscorew, boolean ms)