Package eu.bandm.tools.lljava.absy
Class LLJava.Method
java.lang.Object
eu.bandm.tools.lljava.absy.LLJava.Node
eu.bandm.tools.lljava.absy.LLJava.Modifiable
eu.bandm.tools.lljava.absy.LLJava.Attributable
eu.bandm.tools.lljava.absy.LLJava.Member
eu.bandm.tools.lljava.absy.LLJava.Method
- All Implemented Interfaces:
Formattable
,Cloneable
- Enclosing class:
- LLJava
Definition of a method.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected LLJava.MethodBody
Generated by umod; model author's documentation MISSING.protected CheckedList<LLJava.ClassReference>
Generated by umod; model author's documentation MISSING.protected CheckedList<LLJava.Parameter>
Generated by umod; model author's documentation MISSING.protected LLJava.ResultExpr
Generated by umod; model author's documentation MISSING.protected CheckedList<LLJava.TypeParameter>
Generated by umod; model author's documentation MISSING.Fields inherited from class eu.bandm.tools.lljava.absy.LLJava.Member
descriptorEntry, name, nameEntry, signatureEntry
Fields inherited from class eu.bandm.tools.lljava.absy.LLJava.Attributable
attrs
Fields inherited from class eu.bandm.tools.lljava.absy.LLJava.Modifiable
annotations, modifiers
Fields inherited from class eu.bandm.tools.lljava.absy.LLJava.Node
location
-
Constructor Summary
ConstructorDescriptionMethod
(LLJava.ResultExpr result, LLJava.Id name, LLJava.MethodBody body) Constructor generated according to specification #0
Constructor defined according to directive "C 0/..". -
Method Summary
Modifier and TypeMethodDescriptionvoid
descend_exceptions
(LLJava.MATCH_ONLY_00 visitor) Deprecated.void
descend_parameters
(LLJava.MATCH_ONLY_00 visitor) Deprecated.void
Deprecated.doclone()
Clones this object.format()
Delivers a format object for pretty-printing, as specified in the umod source.get_body()
Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Method>
get_body
(Pattern<? super LLJava.MethodBody> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Method>
get_exceptions
(Pattern<? super CheckedList<LLJava.ClassReference>> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Method>
get_parameters
(Pattern<? super CheckedList<LLJava.Parameter>> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Method>
get_result
(Pattern<? super LLJava.ResultExpr> p) Lifts a pattern which matches the field value to one which matches this whole object.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.Method>
get_typeParameters
(Pattern<? super CheckedList<LLJava.TypeParameter>> p) Lifts a pattern which matches the field value to one which matches this whole object.static String
Delivers the format specification from the umod source.Copies values of all common fields from the argument.boolean
Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.boolean
Generated by umod; model author's documentation MISSING.Methods inherited from class eu.bandm.tools.lljava.absy.LLJava.Member
get_descriptorEntry, get_descriptorEntry, get_name, get_name, get_nameEntry, get_nameEntry, get_signatureEntry, get_signatureEntry, set_descriptorEntry, set_name, set_nameEntry, set_signatureEntry
Methods inherited from class eu.bandm.tools.lljava.absy.LLJava.Attributable
descend_attrs, get_attrs, get_attrs, set_attrs
Methods inherited from class eu.bandm.tools.lljava.absy.LLJava.Modifiable
descend_annotations, descend_modifiers, get_annotations, get_annotations, get_modifiers, get_modifiers, set_annotations, set_modifiers
Methods inherited from class eu.bandm.tools.lljava.absy.LLJava.Node
get_location, get_location, set_location
-
Field Details
-
typeParameters
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":199.9-79, see this pretty print.)
The type of this field isCheckedList
<LLJava.TypeParameter
(never null)>(never null)
Its value defaults to an empty collection. -
result
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":200.9-79, see this pretty print.)
The type of this field isLLJava.ResultExpr
(never null)
It is set by every possible constructor. -
parameters
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":202.9-79, see this pretty print.)
The type of this field isCheckedList
<LLJava.Parameter
(never null)>(never null)
Its value defaults to an empty collection. -
exceptions
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":203.9-79, see this pretty print.)
The type of this field isCheckedList
<LLJava.ClassReference
(never null)>(never null)
Its value defaults to an empty collection. -
body
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":204.9-79, see this pretty print.)
The type of this field isLLJava.MethodBody
(never null)
It is set by every possible constructor.
-
-
Constructor Details
-
Method
Constructor generated according to specification #0
Constructor defined according to directive "C 0/..".- Parameters:
result
- is copied to fieldresult
name
- is copied to fieldLLJava.Member.name
body
- is copied to fieldbody
-
-
Method Details
-
doclone
Clones this object. Method never fails, sinceCloneable
is known to be implemented.- Overrides:
doclone
in classLLJava.Member
- Returns:
- a fresh copy.
-
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
Delivers a format object for pretty-printing, as specified in the umod source.- Specified by:
format
in interfaceFormattable
- Overrides:
format
in classLLJava.Member
- Returns:
- a format that represents this object in a pretty-printable way
-
initFrom
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 classLLJava.Member
-
get_typeParameters
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":199.9-79, see this pretty print.)
Generated getter method. @see #typeParameters- Returns:
- The current field value of type
CheckedList
<LLJava.TypeParameter
(never null)>(never null)
-
set_typeParameters
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":199.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<LLJava.TypeParameter
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_typeParameters
Deprecated. -
get_result
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":200.9-79, see this pretty print.)
Generated getter method. @see #result- Returns:
- The current field value of type
LLJava.ResultExpr
(never null)
-
set_result
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":200.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeLLJava.ResultExpr
(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
get_parameters
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":202.9-79, see this pretty print.)
Generated getter method. @see #parameters- Returns:
- The current field value of type
CheckedList
<LLJava.Parameter
(never null)>(never null)
-
set_parameters
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":202.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<LLJava.Parameter
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_parameters
Deprecated. -
get_exceptions
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":203.9-79, see this pretty print.)
Generated getter method. @see #exceptions- Returns:
- The current field value of type
CheckedList
<LLJava.ClassReference
(never null)>(never null)
-
set_exceptions
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":203.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<LLJava.ClassReference
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_exceptions
Deprecated. -
get_body
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":204.9-79, see this pretty print.)
Generated getter method. @see #body- Returns:
- The current field value of type
LLJava.MethodBody
(never null)
-
set_body
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":204.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeLLJava.MethodBody
(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
get_typeParameters
public static Pattern<LLJava.Method> get_typeParameters(Pattern<? super CheckedList<LLJava.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 classLLJava.__Patterns
. -
get_result
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 classLLJava.__Patterns
. -
get_parameters
public static Pattern<LLJava.Method> get_parameters(Pattern<? super CheckedList<LLJava.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 classLLJava.__Patterns
. -
get_exceptions
public static Pattern<LLJava.Method> get_exceptions(Pattern<? super CheckedList<LLJava.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 classLLJava.__Patterns
. -
get_body
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 classLLJava.__Patterns
.
-