Class Class

All Implemented Interfaces:
Formattable, Cloneable

@Generated(generator="eu.bandm.tools.umod", version="", timestamp="2026-11-24_22h23m18") public class Class extends Attributable
Definition of a class. This is the largest unit of LLJava models.
Reflects the data from the "ClassFile structure", as defined in [JVM] Section 4.1. Please note that the concrete organization differs for ergonomic/semantic reasons: e.g. the "detour" through the constant pool for the field "interfaces" is only in JVM; LLJava simply has references to ClassReference objects. Contrarily, the "field_info structure" is stored inlined in JVM, but by references to Field objects in LLJava.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":149.4-9, see this pretty print.)
See Also:
  • Field Details

  • Constructor Details

    • Class

      public Class(QualId name, ClassReference superClass)
      Constructor defined according to directive »C 0/..«.

      Parameters:
      name - is copied to field name
      superClass - is copied to field superClass
  • Method Details

    • doclone

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

      Overrides:
      doclone in class Attributable
      Returns:
      a fresh copy.
    • getFormatHint

      public static String getFormatHint()
      Delivers the format specification from the umod source.
      The constant return value is ..
      (annotations[, , /];modifiers{$java 'FormatUtils.modifier'}[, , /],'class' name,>typeParameters['<'|',' ,'>'/] ;>'extends' superClass ;>interfaces['implements' |',' , /]);'{'/>(fields[/]/methods[/])/'}'
      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 Attributable
      Returns:
      a format that represents this object in a pretty-printable way
    • initFrom

      public Class 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 Attributable
    • get_name

      public QualId get_name()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":154.1-5, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type QualId(never null)
      See Also:
    • set_name

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

      public @Opt Id get_innerName()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":155.8-17, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type Id(maybe null)
      See Also:
    • set_innerName

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

      public NonNullList<TypeParameter> get_typeParameters()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":156.8-22, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type NonNullList<TypeParameter(never null)>(never null)
      See Also:
    • set_typeParameters

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

      @Deprecated public void descend_typeParameters(MATCH_ONLY_00 visitor)
      Deprecated.
      Use visitor.follow_typeParameters(this) or visitor.followAll_typeParameters(this) instead.
    • get_superClass

      public ClassReference get_superClass()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":158.1-11, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type ClassReference(never null)
      See Also:
    • set_superClass

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

      public NonNullList<ClassReference> get_interfaces()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":159.1-11, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type NonNullList<ClassReference(never null)>(never null)
      See Also:
    • set_interfaces

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

      @Deprecated public void descend_interfaces(MATCH_ONLY_00 visitor)
      Deprecated.
      Use visitor.follow_interfaces(this) or visitor.followAll_interfaces(this) instead.
    • get_fields

      public NonNullList<Field> get_fields()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":160.1-7, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type NonNullList<Field(never null)>(never null)
      See Also:
    • set_fields

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

      @Deprecated public void descend_fields(MATCH_ONLY_00 visitor)
      Deprecated.
      Use visitor.follow_fields(this) or visitor.followAll_fields(this) instead.
    • get_methods

      public NonNullList<Method> get_methods()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":161.1-8, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type NonNullList<Method(never null)>(never null)
      See Also:
    • set_methods

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

      @Deprecated public void descend_methods(MATCH_ONLY_00 visitor)
      Deprecated.
      Use visitor.follow_methods(this) or visitor.followAll_methods(this) instead.
    • get_innerClasses

      public NonNullList<InnerClass> get_innerClasses()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":162.8-20, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type NonNullList<InnerClass(never null)>(never null)
      See Also:
    • set_innerClasses

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

      @Deprecated public void descend_innerClasses(MATCH_ONLY_00 visitor)
      Deprecated.
      Use visitor.follow_innerClasses(this) or visitor.followAll_innerClasses(this) instead.
    • get_pool

      public NonNullList<ConstantPoolEntry> get_pool()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1020.1-5, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type NonNullList<ConstantPoolEntry(never null)>(never null)
      See Also:
    • set_pool

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

      @Deprecated public void descend_pool(MATCH_ONLY_00 visitor)
      Deprecated.
      Use visitor.follow_pool(this) or visitor.followAll_pool(this) instead.
    • get_thisEntry

      public @Opt ClassRef get_thisEntry()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1021.8-17, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type ClassRef(maybe null)
      See Also:
    • set_thisEntry

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

      public @Opt ConstantUTF8 get_signatureEntry()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1022.8-22, see this pretty print.)
      Generated getter method.
      Returns:
      The current field value of type ConstantUTF8(maybe null)
      See Also:
    • set_signatureEntry

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

      public static Pattern<Class> get_name(Pattern<? super QualId> 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_innerName

      public static Pattern<Class> get_innerName(Pattern<? super @Opt Id> 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_typeParameters

      public static Pattern<Class> get_typeParameters(Pattern<? super NonNullList<TypeParameter>> 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_superClass

      public static Pattern<Class> get_superClass(Pattern<? super ClassReference> 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_interfaces

      public static Pattern<Class> get_interfaces(Pattern<? super NonNullList<ClassReference>> 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_fields

      public static Pattern<Class> get_fields(Pattern<? super NonNullList<Field>> 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_methods

      public static Pattern<Class> get_methods(Pattern<? super NonNullList<Method>> 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_innerClasses

      public static Pattern<Class> get_innerClasses(Pattern<? super NonNullList<InnerClass>> 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_pool

      public static Pattern<Class> get_pool(Pattern<? super NonNullList<ConstantPoolEntry>> 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_thisEntry

      public static Pattern<Class> get_thisEntry(Pattern<? super @Opt ClassRef> 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_signatureEntry

      public static Pattern<Class> get_signatureEntry(Pattern<? super @Opt ConstantUTF8> 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.