Package eu.bandm.tools.umod
Class UMod2visitors.V_makeVDescend
java.lang.Object
eu.bandm.tools.umod.UMod.Visitor
eu.bandm.tools.umod.UMod2visitors.Lr_decoder
eu.bandm.tools.umod.UMod2visitors.V_makeVDescend
- Enclosing class:
- UMod2visitors
Returns in "result" a Format which represents the descending code.
"==null" iff there are no visitable fields.
The real method declaration is done by the caller.
Updates globally the set
UMod.FieldDef.visitable_types
for the selected
visitor register number.-
Field Summary
Modifier and TypeFieldDescription(package private) final int
(package private) final UMod.FieldDef
(package private) Format
Currently visited getter-expression.protected int
The cursor variables in "for (i0:...)" are built with an ever increasing number, instead of shadowing previous model names.Accumulated "for(i1;..)match(...)
"-code.(package private) final CheckedSet<UMod.T_reference>
Fields inherited from class eu.bandm.tools.umod.UMod2visitors.Lr_decoder
leftSelected, lrcode, lrposition, rightSelected
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) protected void
mapOrMultimap
(UMod.T_2 t, Format modelAsEntrySet) protected void
pairOrCoPair
(UMod.T_2 t, boolean is_co) protected void
Methods inherited from class eu.bandm.tools.umod.UMod2visitors.Lr_decoder
updateSelection
Methods inherited from class eu.bandm.tools.umod.UMod.Visitor
action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, descend_Forest$extBySequence, getResult, match
-
Field Details
-
result
Accumulated "for(i1;..)match(...)
"-code. If ==null, then no single visitable field has been selected. -
model
Format modelCurrently visited getter-expression. -
modelnum
protected int modelnumThe cursor variables in "for (i0:...)" are built with an ever increasing number, instead of shadowing previous model names. -
fd
-
branchcase
final int branchcase -
visitable_leaf_types
-
-
Constructor Details
-
V_makeVDescend
V_makeVDescend(UMod.FieldDef fd, int branchcase, String lrcode)
-
-
Method Details
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
setOrList
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
mapOrMultimap
-
action
- Overrides:
action
in classUMod.Visitor
-
action
- Overrides:
action
in classUMod.Visitor
-
pairOrCoPair
-