Class Method

All Implemented Interfaces:
Formattable, Cloneable

@Generated(generator="eu.bandm.tools.umod", version="", timestamp="2026-11-24_22h23m18") public class Method extends Member
Definition of a method.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":196.6-12, see this pretty print.)
See Also:
  • Field Details

  • Constructor Details

    • Method

      public Method(ResultExpr result, Id name, MethodBody body)
      Constructor defined according to directive »C 0/..«.

      Parameters:
      result - is copied to field result
      name - is copied to field Member.name
      body - is copied to field body
  • Method Details

    • doclone

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

      Overrides:
      doclone in class Member
      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'}[, , /],typeParameters['<'|',' ,'>' /];result name;>parameters['('|',' ,')'];>exceptions[ 'throws' |',' ,/]);body
      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 Member
      Returns:
      a format that represents this object in a pretty-printable way
    • initFrom

      public Method 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 Member
    • 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":201.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":201.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_result

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

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

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

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

      @Deprecated public void descend_parameters(MATCH_ONLY_00 visitor)
      Deprecated.
      Use visitor.follow_parameters(this) or visitor.followAll_parameters(this) instead.
    • get_exceptions

      public NonNullList<ClassReference> get_exceptions()
      Generated by umod; model author's documentation MISSING.
      (This definition has been created by UMod from the source at SYSTEM "LLJava.umod":205.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_exceptions

      public boolean set_exceptions(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":205.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_exceptions

      @Deprecated public void descend_exceptions(MATCH_ONLY_00 visitor)
      Deprecated.
      Use visitor.follow_exceptions(this) or visitor.followAll_exceptions(this) instead.
    • get_body

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

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

      public static Pattern<Method> 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_result

      public static Pattern<Method> get_result(Pattern<? super ResultExpr> 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_parameters

      public static Pattern<Method> get_parameters(Pattern<? super NonNullList<Parameter>> 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_exceptions

      public static Pattern<Method> get_exceptions(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_body

      public static Pattern<Method> get_body(Pattern<? super MethodBody> 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.