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.)
  • Field Details

  • Constructor Details

    • Switch

      public Switch(@Opt Location<String> location, Model.Expr selector)
      Constructor defined according to directive »C 0/..«.

      Parameters:
      location - is copied to field Model.Expr.location
      selector - is copied to field selector
    • Switch

      public Switch(Model.Expr selector)
      Constructor with minimal set of arguments, is supplied automatically by the umod compiler, not explicitly by the user.

      Parameters:
      selector - is copied to field selector
  • Method Details

    • doclone

      public Model.Switch doclone()
      Clones this object. Method never fails, since Cloneable is known to be implemented.

      Overrides:
      doclone in class Model.Expr
      Returns:
      a fresh copy.
    • initFrom

      public Model.Switch initFrom(Object o0)
      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:
      initFrom in class Model.Expr
    • get_selector

      public Model.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(never null)
      See Also:
    • set_selector

      public boolean set_selector(Model.Expr val)
      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 type Model.Expr(never null)
      Returns:
      whether a change (w.r.t. ==) did actually happen.
      See Also:
    • get_cases

      public NonNullMap<Model.Expr,Model.Expr> 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(never null),Model.Expr(never null)>(never null)
      See Also:
    • set_cases

      public boolean set_cases(NonNullMap<Model.Expr,Model.Expr> val)
      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 type NonNullMap<Model.Expr(never null),Model.Expr(never null)>(never null)
      Returns:
      whether a change (w.r.t. ==) did actually happen.
      See Also:
    • put_cases

      public void put_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.
      Parameters:
      value - the new value of type Model.Expr(never null)
      See Also:
    • containsKey_cases

      public boolean containsKey_cases(Model.Expr key0)
      Convenience un-Currying method.
      Returns:
      whether there exists a chain of collection objects to the given co-ordinate.
      See Also:
    • descend_cases

      @Deprecated public void descend_cases(Model.MATCH_ONLY_00 visitor)
      Deprecated.
      Use visitor.follow_cases(this) or visitor.followAll_cases(this) instead.
    • descend_1_cases

      @Deprecated public void descend_1_cases(Model.MATCH_ONLY_00 visitor)
      Deprecated.
    • get_defaultCase

      public @Opt Model.Expr 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(maybe null)
      See Also:
    • set_defaultCase

      public boolean set_defaultCase(@Opt Model.Expr val)
      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 type Model.Expr(maybe null)
      Returns:
      whether a change (w.r.t. ==) did actually happen.
      See Also:
    • get_selector

      public 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.
      More complex pattern methods are generated in the one ancillary class Model.__Patterns.
    • get_cases

      public 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.
      More complex pattern methods are generated in the one ancillary class Model.__Patterns.
    • get_defaultCase

      public 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.
      More complex pattern methods are generated in the one ancillary class Model.__Patterns.