Class DefInstance

java.lang.Object
eu.bandm.tools.d2d2.model.DefInstance
All Implemented Interfaces:
Formattable, Cloneable

public class DefInstance extends Object implements Cloneable, Formattable
Is entered for each instantiated definition into the resolvedModule's result data.
(This definition has been created by UMod from the source at SYSTEM "D2d.umod":280.3-285.29, see this pretty print.)
  • Field Details

  • Constructor Details

    • DefInstance

      public DefInstance(Definition raw, String representingKey)
      Constructor generated according to specification #0
      Constructor defined according to directive "C 0/..".

      Parameters:
      raw - is copied to field raw
      representingKey - is copied to field representingKey
    • DefInstance

      DefInstance()
  • Method Details

    • doclone

      public DefInstance doclone()
      Clones this object. Method never fails, since Cloneable is known to be implemented.
      Returns:
      a fresh copy.

    • format

      public Format format()
      Delivers a format object for pretty-printing by inheritance from some ancestor class.
      Specified by:
      format in interface Formattable
      Returns:
      a format that represents this object in a pretty-printable way
    • initFrom

      public DefInstance 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.
    • get_raw

      public Definition get_raw()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":283.9-49, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type Definition(never null)
      See Also:
    • set_raw

      public boolean set_raw(Definition val)
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":283.9-49, see this pretty print.)
      Updates the (mutable) instance destructively.
      Parameters:
      val - the new value of type Definition(never null)
      Returns:
      whether a change (w.r.t. ==) did actually happen.
      See Also:
    • get_representingKey

      public String get_representingKey()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":284.9-49, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type java.lang.String(never null)
      See Also:
    • set_representingKey

      public boolean set_representingKey(String val)
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":284.9-49, see this pretty print.)
      Updates the (mutable) instance destructively.
      Parameters:
      val - the new value of type java.lang.String(never null)
      Returns:
      whether a change (w.r.t. ==) did actually happen.
      See Also:
    • get_importKeys

      public CheckedSet<String> get_importKeys()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":285.9-29, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type CheckedSet<java.lang.String(never null)>(never null)
      See Also:
    • set_importKeys

      public boolean set_importKeys(CheckedSet<String> val)
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":285.9-29, see this pretty print.)
      Updates the (mutable) instance destructively.
      Parameters:
      val - the new value of type CheckedSet<java.lang.String(never null)>(never null)
      Returns:
      whether a change (w.r.t. ==) did actually happen.
      See Also:
    • get_raw

      public static Pattern<DefInstance> get_raw(Pattern<? super Definition> 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 __Patterns.
    • get_representingKey

      public static Pattern<DefInstance> get_representingKey(Pattern<? super String> 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 __Patterns.
    • get_importKeys

      public static Pattern<DefInstance> get_importKeys(Pattern<? super CheckedSet<String>> 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 __Patterns.