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
-
Field Summary
Modifier and TypeFieldDescriptionprotected UMod.Forest
protected boolean
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>>
Fields inherited from class eu.bandm.tools.umod.UMod.Visitor
result
-
Constructor Summary
ConstructorDescriptionJavaMapper
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, UMod.Forest model, boolean floatNotDouble) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
action
(UMod.T_int t) void
action
(UMod.T_map t) void
action
(UMod.T_opt t) void
void
void
void
action
(UMod.T_rel t) void
action
(UMod.T_seq t) void
protected void
ERROR
(Location<XMLDocumentIdentifier> loc, String txt) protected boolean
protected boolean
protected void
simple
(UMod.TypeBasic t, EnvironmentClass scalar, EnvironmentClass boxed) protected void
WARNING
(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:
action
in classUMod.Visitor
-
simple
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-