Package eu.bandm.tools.formattext
Class Model.Switch
java.lang.Object
eu.bandm.tools.formattext.Model.Expr
eu.bandm.tools.formattext.Model.Switch
- All Implemented Interfaces:
Cloneable
- Enclosing class:
Model
@Generated(generator="eu.bandm.tools.umod",
version="",
timestamp="2026-08-09_10h01m04")
public static class Model.Switch
extends Model.Expr
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "/home/lepper/metatools/src/eu/bandm/tools/formattext/Model.umod":57.4-10, see this pretty print.)
(This definition has been created by UMod from the source at SYSTEM "/home/lepper/metatools/src/eu/bandm/tools/formattext/Model.umod":57.4-10, see this pretty print.)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NonNullMap<Model.Expr, Model.Expr> Generated by umod; model author's documentation MISSING.protected @Opt Model.ExprGenerated by umod; model author's documentation MISSING.protected Model.ExprGenerated by umod; model author's documentation MISSING.Fields inherited from class eu.bandm.tools.formattext.Model.Expr
location -
Constructor Summary
ConstructorsConstructorDescriptionSwitch(Model.Expr selector) Constructor with minimal set of arguments, is supplied automatically by the umod compiler, not explicitly by the user.
Switch(@Opt Location<String> location, Model.Expr selector) Constructor defined according to directive »C 0/..«.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey_cases(Model.Expr key0) Convenience un-Currying method.voiddescend_1_cases(Model.MATCH_ONLY_00 visitor) Deprecated.voiddescend_cases(Model.MATCH_ONLY_00 visitor) Deprecated.doclone()Clones this object.Generated by umod; model author's documentation MISSING.static Pattern<Model.Switch> get_cases(Pattern<? super NonNullMap<Model.Expr, Model.Expr>> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<Model.Switch> get_defaultCase(Pattern<? super @Opt Model.Expr> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<Model.Switch> get_selector(Pattern<? super Model.Expr> p) Lifts a pattern which matches the field value to one which matches this whole object.Copies values of all common fields from the argument.voidput_cases(Model.Expr key0, Model.Expr value) Convenience un-Currying method.
Set the value at the given coordinate and automatically generate all intermediate collections, if not yet existing.booleanGenerated by umod; model author's documentation MISSING.booleanGenerated by umod; model author's documentation MISSING.booleanset_selector(Model.Expr val) Generated by umod; model author's documentation MISSING.Methods inherited from class eu.bandm.tools.formattext.Model.Expr
get_location, get_location, set_location
-
Field Details
-
selector
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "/home/lepper/metatools/src/eu/bandm/tools/formattext/Model.umod":59.6-14, see this pretty print.)
The type of this field isModel.Expr(nevernull)
It is set by every possible constructor.
- See Also:
-
cases
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "/home/lepper/metatools/src/eu/bandm/tools/formattext/Model.umod":61.6-11, see this pretty print.)
The type of this field isNonNullMap<Model.Expr(nevernull),Model.Expr(nevernull)>(nevernull)
Its value defaults to an empty collection.
- See Also:
-
defaultCase
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "/home/lepper/metatools/src/eu/bandm/tools/formattext/Model.umod":63.6-17, see this pretty print.)
The type of this field isModel.Expr(maybenull)
Its value defaults tonull.
- See Also:
-
-
Constructor Details
-
Switch
Constructor defined according to directive »C 0/..«.
- Parameters:
location- is copied to fieldModel.Expr.locationselector- is copied to fieldselector
-
Switch
Constructor with minimal set of arguments, is supplied automatically by the umod compiler, not explicitly by the user.
- Parameters:
selector- is copied to fieldselector
-
-
Method Details
-
doclone
- Overrides:
doclonein classModel.Expr- Returns:
- a fresh copy.
-
initFrom
Copies values of all common fields from the argument. All fields of this class definition are copied, iff the argument is of this class. Then the superclass method is invoked with the same argument.- Overrides:
initFromin classModel.Expr
-
get_selector
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "/home/lepper/metatools/src/eu/bandm/tools/formattext/Model.umod":59.6-14, see this pretty print.)
Generated getter method.- Returns:
- The current field value of type
Model.Expr(nevernull) - See Also:
-
set_selector
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "/home/lepper/metatools/src/eu/bandm/tools/formattext/Model.umod":59.6-14, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val- the new value of typeModel.Expr(nevernull)- Returns:
- whether a change (w.r.t.
==) did actually happen. - See Also:
-
get_cases
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "/home/lepper/metatools/src/eu/bandm/tools/formattext/Model.umod":61.6-11, see this pretty print.)
Generated getter method.- Returns:
- The current field value of type
NonNullMap<Model.Expr(nevernull),Model.Expr(nevernull)>(nevernull) - See Also:
-
set_cases
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "/home/lepper/metatools/src/eu/bandm/tools/formattext/Model.umod":61.6-11, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val- the new value of typeNonNullMap<Model.Expr(nevernull),Model.Expr(nevernull)>(nevernull)- Returns:
- whether a change (w.r.t.
==) did actually happen. - See Also:
-
put_cases
Convenience un-Currying method.
Set the value at the given coordinate and automatically generate all intermediate collections, if not yet existing.- Parameters:
value- the new value of typeModel.Expr(nevernull)- See Also:
-
containsKey_cases
Convenience un-Currying method.- Returns:
- whether there exists a chain of collection objects to the given co-ordinate.
- See Also:
-
descend_cases
Deprecated.Usevisitor.follow_cases(this)orvisitor.followAll_cases(this)instead. -
descend_1_cases
Deprecated. -
get_defaultCase
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "/home/lepper/metatools/src/eu/bandm/tools/formattext/Model.umod":63.6-17, see this pretty print.)
Generated getter method.- Returns:
- The current field value of type
Model.Expr(maybenull) - See Also:
-
set_defaultCase
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "/home/lepper/metatools/src/eu/bandm/tools/formattext/Model.umod":63.6-17, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val- the new value of typeModel.Expr(maybenull)- Returns:
- whether a change (w.r.t.
==) did actually happen. - See Also:
-
get_selector
Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classModel.__Patterns. -
get_cases
Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classModel.__Patterns. -
get_defaultCase
Lifts a pattern which matches the field value to one which matches this whole object.
More complex pattern methods are generated in the one ancillary classModel.__Patterns.
-
visitor.follow_cases(this)orvisitor.followAll_cases(this)instead.