Package eu.bandm.tools.umod
Class UMod2format
java.lang.Object
eu.bandm.tools.umod.UMod.Visitor
eu.bandm.tools.umod.UMod2format
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected HashMap<UMod.ClassDef,
Format> protected UMod2format.Compiler
protected boolean
protected static final String
protected static final String
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>>
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final Format
protected GeneratedClass
static final EnvironmentClass
Fields inherited from class eu.bandm.tools.umod.UMod.Visitor
result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
process
(UMod.ClassDef cd) 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)
creates a "Format Creator" class by deriving fromformatfrontends.GeneriCompiler
creates 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
-
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_Collections
-
getterfunctions
protected boolean getterfunctions -
msgRec
-
compiler
-
targetcls
-
class2format
-
-
Constructor Details
-
UMod2format
public 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
-