Class Module

java.lang.Object
eu.bandm.tools.d2d2.model.SourceItem
eu.bandm.tools.d2d2.model.Module
All Implemented Interfaces:
Formattable, Serializable, Cloneable
Direct Known Subclasses:
ResolvedModule

public class Module extends SourceItem
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "D2d.umod":188.3-203.9, see this pretty print.)
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • doclone

      public Module doclone()
      Clones this object. Method never fails, since Cloneable is known to be implemented.
      Overrides:
      doclone in class SourceItem
      Returns:
      a fresh copy.
    • getFormatHint

      public static String getFormatHint()
      Delivers the format specification from the umod source.
      The constant return value is ..
      (($is ResolvedModule $this)'resolved' ?)'module 'name/ /4>namespaces[/]/ /4>(modules{$to}[/])/ / /imports{$to}[/]/ /definitions{$to}[/(' '/' ')/]/ /'end module //'name/ /
      This can be used e.g. by format code interpreters which process objects of different origin.
    • format

      public Format format()
      Delivers a format object for pretty-printing, as specified in the umod source.
      Specified by:
      format in interface Formattable
      Overrides:
      format in class SourceItem
      Returns:
      a format that represents this object in a pretty-printable way
    • find

      public SourceItem find(String s)
    • initFrom

      public Module 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 SourceItem
    • get_modules

      public CheckedMap_RD<String,Module> get_modules()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":189.9-73, see this pretty print.)
      Generated getter method. @see #modules
      Returns:
      The current field value of type CheckedMap_RD<java.lang.String(never null),Module(never null)>(never null)
    • set_modules

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

      public void put_modules(String key0, Module 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 Module(never null)
      See Also:
    • containsKey_modules

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

      @Deprecated public void descend_modules(MATCH_ONLY_00 visitor)
      Deprecated.
    • descend_0_modules

      @Deprecated public void descend_0_modules(MATCH_ONLY_00 visitor)
      Deprecated.
    • get_imports

      public CheckedMap_RD<String,ImportItem> get_imports()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":190.9-79, see this pretty print.)
      Generated getter method. @see #imports
      Returns:
      The current field value of type CheckedMap_RD<java.lang.String(never null),ImportItem(never null)>(never null)
    • set_imports

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

      public void put_imports(String key0, ImportItem 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 ImportItem(never null)
      See Also:
    • containsKey_imports

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

      @Deprecated public void descend_imports(MATCH_ONLY_00 visitor)
      Deprecated.
    • descend_0_imports

      @Deprecated public void descend_0_imports(MATCH_ONLY_00 visitor)
      Deprecated.
    • descend_2_imports

      @Deprecated public void descend_2_imports(MATCH_ONLY_00 visitor)
      Deprecated.
    • get_definitions

      public CheckedMap_RD<String,Definition> get_definitions()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":191.9-79, see this pretty print.)
      Generated getter method. @see #definitions
      Returns:
      The current field value of type CheckedMap_RD<java.lang.String(never null),Definition(never null)>(never null)
    • set_definitions

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

      public void put_definitions(String key0, Definition 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 Definition(never null)
      See Also:
    • containsKey_definitions

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

      @Deprecated public void descend_definitions(MATCH_ONLY_00 visitor)
      Deprecated.
    • descend_0_definitions

      @Deprecated public void descend_0_definitions(MATCH_ONLY_00 visitor)
      Deprecated.
    • descend_2_definitions

      @Deprecated public void descend_2_definitions(MATCH_ONLY_00 visitor)
      Deprecated.
    • get_defaultElNs

      public NamespaceName get_defaultElNs()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":194.9-29, see this pretty print.)
      Generated getter method. @see #defaultElNs
      Returns:
      The current field value of type NamespaceName(maybe null)
    • set_defaultElNs

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

      public CheckedList<NamespaceDecl> get_namespaces()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":197.9-29, see this pretty print.)
      Generated getter method. @see #namespaces
      Returns:
      The current field value of type CheckedList<NamespaceDecl(never null)>(never null)
    • set_namespaces

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

      @Deprecated public void descend_namespaces(MATCH_ONLY_00 visitor)
      Deprecated.
    • get_isLocal

      public boolean get_isLocal()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "D2d.umod":199.9-32, see this pretty print.)
      Generated getter method. @see #isLocal
      Returns:
      The current field value of type boolean(never null)
    • set_isLocal

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

      public static Pattern<Module> get_modules(Pattern<? super CheckedMap_RD<String,Module>> 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_imports

      public static Pattern<Module> get_imports(Pattern<? super CheckedMap_RD<String,ImportItem>> 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_definitions

      public static Pattern<Module> get_definitions(Pattern<? super CheckedMap_RD<String,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_defaultElNs

      public static Pattern<Module> get_defaultElNs(Pattern<? super NamespaceName> 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_namespaces

      public static Pattern<Module> get_namespaces(Pattern<? super CheckedList<NamespaceDecl>> 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_isLocal

      public static Pattern<Module> get_isLocal(Pattern<? super Boolean> 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.