Package eu.bandm.tools.umod
Class Types.JavaMapper
java.lang.Object
eu.bandm.tools.umod.UMod.Visitor
eu.bandm.tools.umod.Types.JavaMapper
- Enclosing class:
Types
Central class for relating umod type definitions to Java type constructs.
"new JavaMapper(..).match(Umod.Type t)" is called from several points
in UMod.java.
Only after a successful run, all fields of the »Type« elements in a
umod meta-model are valid.
The applications are idempotent.
On success, all type info necessary for compilation is stored destructively into the UMod.Type objects as followed:
+--------------+
| Umod.Type |
+--------------+
| javaDecl:MetaClass for generating all declarations of Java
| | instances of this type.
| | == null only if type resolution FAILED!
| javaImpl:MetaClass for calling a constructor for this type.
+--------------+
+--------------+
|Umod.TypeBasic|
+--------------+
| boxed:MetaClass if javaDecl=javaImpl=(some prime, scalar class)
| | then this field is !=null and
| | contains the boxed class.
+--------------+
+--------------+
| Umod.T_reference
+--------------+
| isExternal:boolean iff the reference is to an ExtDeclaration
+--------------+
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UMod.Forestprotected booleanprotected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> Fields inherited from class eu.bandm.tools.umod.UMod.Visitor
result -
Constructor Summary
ConstructorsConstructorDescriptionJavaMapper(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, UMod.Forest model, boolean floatNotDouble) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidaction(UMod.T_int t) voidaction(UMod.T_map t) voidaction(UMod.T_opt t) voidvoidvoidvoidvoidaction(UMod.T_rel t) voidaction(UMod.T_seq t) voidprotected voidERROR(Location<XMLDocumentIdentifier> loc, String txt) protected booleanprotected booleanprotected voidsimple(UMod.TypeBasic t, EnvironmentClass scalar, EnvironmentClass boxed) protected voidWARNING(Location<XMLDocumentIdentifier> loc, String txt)
-
Field Details
-
curmodel
-
floatNotDouble
protected boolean floatNotDouble -
msg
-
-
Constructor Details
-
JavaMapper
public JavaMapper(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, UMod.Forest model, boolean floatNotDouble)
-
-
Method Details
-
erroroccured
-
resolveboth
-
WARNING
-
ERROR
-
action
- Overrides:
actionin classUMod.Visitor
-
simple
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-
action
- Overrides:
actionin classUMod.Visitor
-