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.
On success, all type info necessary for compilation is stored destructively into the UMod.Type objects as followed:
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 decl.s 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) voidvoidvoidvoidaction(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
-