public class UMod2format extends UMod.Visitor
Modifier and Type | Class and Description |
---|---|
protected class |
UMod2format.Compiler |
protected class |
UMod2format.ThrowCritical<M extends SimpleMessage<XMLDocumentIdentifier>> |
Modifier and Type | Field and Description |
---|---|
protected HashMap<UMod.ClassDef,Format> |
class2format |
protected UMod2format.Compiler |
compiler |
protected boolean |
getterfunctions |
protected static String |
METHODNAME_TOFORMAT |
protected static String |
METHODNAME_TOFORMAT_STATIC |
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
msgRec |
protected static String |
NAME_DEFAULTFORMAT |
protected static String |
NAME_FORMAT_SPACE |
protected static String |
NAME_FORMATTER |
protected static String |
NAME_MATCH_CHECKED |
protected static String |
NAME_MATCH_CHECKED_STRING |
protected static String |
NAME_NULL_STRING |
protected static String |
PARAMETERNAME |
protected static Format |
PARAMFORMAT |
protected GeneratedClass |
targetcls |
static EnvironmentClass |
WRAPPEDCLASS_Collections |
result
Constructor and Description |
---|
UMod2format() |
Modifier and Type | Method and Description |
---|---|
protected 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 from formatfrontends.GeneriCompiler
creates some fields and sets initializerscalls compilation method for each umod class definition flushes accumulated const declarations to class code. Assumes that the code of "error()" is volatile! |
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, getResult, match
protected static final String NAME_FORMATTER
protected static final String METHODNAME_TOFORMAT
protected static final String METHODNAME_TOFORMAT_STATIC
protected static final String NAME_DEFAULTFORMAT
protected static final String NAME_FORMAT_SPACE
protected static final String NAME_NULL_STRING
protected static final String NAME_MATCH_CHECKED
protected static final String NAME_MATCH_CHECKED_STRING
protected static final String PARAMETERNAME
protected static final Format PARAMFORMAT
public static final EnvironmentClass WRAPPEDCLASS_Collections
protected boolean getterfunctions
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgRec
protected UMod2format.Compiler compiler
protected GeneratedClass targetcls
protected HashMap<UMod.ClassDef,Format> class2format
public void process(UMod.Forest code, GeneratedContext context, GeneratedClass modelclass, GeneratedClass basematcher, boolean getterfunctions, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> externalMsgDrain)
formatfrontends.GeneriCompiler
protected void process(UMod.ClassDef cd)
see also the complete user documentation .