public class Tdom2format extends GenericCompiler
Modifier and Type | Class and Description |
---|---|
protected class |
Tdom2format.NameMangler |
protected class |
Tdom2format.Switchselection |
protected class |
Tdom2format.TdomSubformat |
GenericCompiler.Subformat
callFunctionForRaisingException, checkedmode, constcache, exprCache, fresult, isdynamic, MODIF_CONST, msg, NAME_CONST_FORMAT_EMPTY, NAME_METHOD_THROW_TAKE_ALTERNATIVE, NAME_VAR_DEFAULT_INDENT, NAME_VAR_FORMAT_RESULT, NAME_VAR_MODE, rec, REF_FORMAT_Format, targetclass, WRAPPEDCLASS_CompoundConstructor, WRAPPEDCLASS_Format, WRAPPEDCLASS_Function, WRAPPEDCLASS_ListoidFormatter, WRAPPEDCLASS_Lists, WRAPPEDCLASS_MapEntry, WRAPPEDCLASS_MapoidFormatter, WRAPPEDCLASS_Object, WRAPPEDCLASS_TakeAlternativeException, WRAPPEDCLASS_TryerCatcher
validating
Constructor and Description |
---|
Tdom2format(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> rec) |
Modifier and Type | Method and Description |
---|---|
GeneratedClass |
compile(GeneratedPackage targetpackage,
MetaClass basevisitor,
String classname,
eu.bandm.tools.formatfrontends.absy.Element_tdomRules rules) |
protected Format |
FORMATTER_fieldSelection(Format f,
String s) |
protected Format |
getCurrentModel()
Currently only needed to compile
escapeToJava() in the variant operating
directly on the model element. |
protected static eu.bandm.tools.formatfrontends.absy.Document_tdomRules |
loadDocument(Reader str,
String filename,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) |
static void |
main(String[] args)
needs :
|
protected void |
ruleerror(Location<XMLDocumentIdentifier> l,
String s) |
void |
visit(eu.bandm.tools.formatfrontends.absy.Element_cas el)
MISSING FIXME
check if numbers correspond to kind of selector (0/1 for elements!)
|
void |
visit(eu.bandm.tools.formatfrontends.absy.Element_cases el) |
void |
visit(eu.bandm.tools.formatfrontends.absy.Element_child el)
Compile code for a child reference.
|
void |
visit(eu.bandm.tools.formatfrontends.absy.Element_clss el) |
void |
visit(eu.bandm.tools.formatfrontends.absy.Element_clssUPCASE el) |
void |
visit(eu.bandm.tools.formatfrontends.absy.Element_instanceTest el) |
void |
visit(eu.bandm.tools.formatfrontends.absy.Element_supr el) |
void |
visit(eu.bandm.tools.formatfrontends.absy.Element_swtch el) |
void |
visit(eu.bandm.tools.formatfrontends.absy.Element_t_pcdata element) |
void |
visit(eu.bandm.tools.formatfrontends.absy.Element_tdomRule el) |
checkconst, compileCallToFormatText, compileModeSwitch, compileOnePattern, create_resultfield, expr, getMsgReceiver, initTransformerClass, process_compound, refer, setMsgReceiver, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
visit
public final EnvironmentClass WRAPPEDCLASS_Arrays
public final EnvironmentClass WRAPPEDCLASS_String
public final EnvironmentClass WRAPPEDCLASS_List
public final EnvironmentClass WRAPPEDCLASS_ArrayList
public final EnvironmentClass WRAPPEDCLASS_Visitable
public final GeneratedParameterizedType WRAPPEDCLASS_ListoidFormatter_Visitable
public static final int lineWidth
public static final ClassLoader targetClassLoader
protected Format FORMAT_fieldSelection
protected final String NAME_COMPILER_DEFAULT
protected final int VISIT_MODIF
protected final String VISIT_NAME
protected final String VISIT_PARAMETER_NAME
protected final String NAME_METHOD_toFormat
protected final String NAME_METHOD_toFormat_throwing
protected final String NAME_METHOD_toFormat_array
protected EnvironmentClass wrappedclass_Element
protected MetaPackage absypackage
protected final Map<String,GeneratedMethod> visitmethods
protected final Tdom2format.NameMangler namemangler
protected Format currentModel
protected String diag_rule
protected Tdom2format.TdomSubformat subformat
protected final String NAME_FUNCTION_ARGUMENT
protected final Format FORMAT_FUNCTION_ARGUMENT
protected Tdom2format.Switchselection switchselection
<!ELEMENT numberedref (ref, number?) >
public Tdom2format(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> rec)
protected Format getCurrentModel()
GenericCompiler
escapeToJava()
in the variant operating
directly on the model element.
Introduced 20170428.getCurrentModel
in class GenericCompiler
public GeneratedClass compile(GeneratedPackage targetpackage, MetaClass basevisitor, String classname, eu.bandm.tools.formatfrontends.absy.Element_tdomRules rules)
protected void ruleerror(Location<XMLDocumentIdentifier> l, String s)
public void visit(eu.bandm.tools.formatfrontends.absy.Element_tdomRule el)
visit
in class eu.bandm.tools.formatfrontends.absy.Visitor
public void visit(eu.bandm.tools.formatfrontends.absy.Element_instanceTest el)
visit
in class eu.bandm.tools.formatfrontends.absy.Visitor
public void visit(eu.bandm.tools.formatfrontends.absy.Element_clss el)
visit
in class eu.bandm.tools.formatfrontends.absy.Visitor
public void visit(eu.bandm.tools.formatfrontends.absy.Element_clssUPCASE el)
visit
in class eu.bandm.tools.formatfrontends.absy.Visitor
public void visit(eu.bandm.tools.formatfrontends.absy.Element_supr el)
visit
in class eu.bandm.tools.formatfrontends.absy.Visitor
public void visit(eu.bandm.tools.formatfrontends.absy.Element_t_pcdata element)
visit
in class eu.bandm.tools.formatfrontends.absy.Visitor
public void visit(eu.bandm.tools.formatfrontends.absy.Element_child el)
[..]
".
--visit
in class eu.bandm.tools.formatfrontends.absy.Visitor
public void visit(eu.bandm.tools.formatfrontends.absy.Element_swtch el)
visit
in class eu.bandm.tools.formatfrontends.absy.Visitor
public void visit(eu.bandm.tools.formatfrontends.absy.Element_cases el)
visit
in class eu.bandm.tools.formatfrontends.absy.Visitor
public void visit(eu.bandm.tools.formatfrontends.absy.Element_cas el)
visit
in class eu.bandm.tools.formatfrontends.absy.Visitor
protected static eu.bandm.tools.formatfrontends.absy.Document_tdomRules loadDocument(Reader str, String filename, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
public static void main(String[] args)
0: root of source tree 1: package name 2: name of base visitor class 3: name of class to generate 4: indication of source type "dtd" or other string 5: source file uri --OR-- dtd uri with PIs ""
see also the complete user documentation .