Package eu.bandm.tools.umod
Class UMod2format
java.lang.Object
eu.bandm.tools.umod.UMod.Visitor
eu.bandm.tools.umod.UMod2format
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashMap<UMod.ClassDef, Format> protected UMod2format.Compiler(package private) final GeneratedAnnotationprotected booleanprotected static final Stringprotected static final Stringprotected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Formatprotected GeneratedClassstatic final EnvironmentClassFields inherited from class eu.bandm.tools.umod.UMod.Visitor
result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocess(UMod.ClassDef cd) voidprocess(UMod.Forest code, GeneratedContext context, GeneratedClass modelclass, GeneratedClass basematcher, boolean getterfunctions, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> externalMsgDrain) generates formatter class, derived from visitor "basematcher"
as inner class in "forestclass"
global fields and constants in this class
entry methods ("toFormat()" etc)
creates a "Format Creator" class by deriving fromformatfrontends.GeneriCompilercreates some fields and sets initializers
calls compilation method for each umod class definition
flushes accumulated const declarations to class code.
Assumes that the code of "error()" is volatile!Methods inherited from class eu.bandm.tools.umod.UMod.Visitor
action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, descend_Forest$extBySequence, getResult, match
-
Field Details
-
generatedAnnotation
-
NAME_FORMATTER
- See Also:
-
METHODNAME_TOFORMAT
- See Also:
-
METHODNAME_TOFORMAT_STATIC
- See Also:
-
NAME_DEFAULTFORMAT
- See Also:
-
NAME_FORMAT_SPACE
- See Also:
-
NAME_NULL_STRING
- See Also:
-
NAME_MATCH_CHECKED
- See Also:
-
NAME_MATCH_CHECKED_STRING
- See Also:
-
PARAMETERNAME
- See Also:
-
PARAMFORMAT
-
WRAPPEDCLASS_Collectors
-
getterfunctions
protected boolean getterfunctions -
msgRec
-
compiler
-
targetcls
-
class2format
-
-
Constructor Details
-
UMod2format
-
-
Method Details
-
process
public void process(UMod.Forest code, GeneratedContext context, GeneratedClass modelclass, GeneratedClass basematcher, boolean getterfunctions, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> externalMsgDrain) - generates
- formatter class, derived from visitor "basematcher"
as inner class in "forestclass"
- global fields and constants in this class
- entry methods ("toFormat()" etc)
- formatter class, derived from visitor "basematcher"
- creates a "Format Creator" class by deriving from
formatfrontends.GeneriCompiler- creates some fields and sets initializers
- calls compilation method for each umod class definition
- flushes accumulated const declarations to class code.
- creates some fields and sets initializers
- generates
-
process
-