Package eu.bandm.tools.lljava.absy
Class LLJava.CodeMethodBody
java.lang.Object
eu.bandm.tools.lljava.absy.LLJava.Node
eu.bandm.tools.lljava.absy.LLJava.MethodBody
eu.bandm.tools.lljava.absy.LLJava.CodeMethodBody
- All Implemented Interfaces:
Formattable
,Cloneable
- Enclosing class:
- LLJava
Syntactic expression defining the body of a method
by code.
(This definition has been created by UMod
from the source at SYSTEM "LLJava.umod":407.1-412.16, see this pretty
print.)-
Field Summary
Modifier and TypeFieldDescriptionprotected LLJava.Block
Generated by umod; model author's documentation MISSING.protected CheckedList<LLJava.Exception>
The table of exception handlers for the code of this method.protected Integer
An upper bound on the maximum number of local variable slots required for the execution of this method.protected Integer
An upper bound on the maximum number of operand stack slots required for the execution of this method.protected CheckedList<LLJava.StackFrameDelta>
A stack map specifying the static type analysis of the code of this method.protected CheckedSet<LLJava.Instruction>
The set of instructions requiring stack map information in the code of this method.Fields inherited from class eu.bandm.tools.lljava.absy.LLJava.Node
location
-
Constructor Summary
ConstructorDescriptionCodeMethodBody
(LLJava.Block block) Constructor generated according to specification #0
Constructor defined according to directive "C 0/..". -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
descend_stackMap
(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.Generated by umod; model author's documentation MISSING.static Pattern<LLJava.CodeMethodBody>
get_block
(Pattern<? super LLJava.Block> p) Lifts a pattern which matches the field value to one which matches this whole object.The table of exception handlers for the code of this method.static Pattern<LLJava.CodeMethodBody>
get_exceptionTable
(Pattern<? super CheckedList<LLJava.Exception>> p) Lifts a pattern which matches the field value to one which matches this whole object.An upper bound on the maximum number of local variable slots required for the execution of this method.static Pattern<LLJava.CodeMethodBody>
get_maxLocals
(Pattern<? super Integer> p) Lifts a pattern which matches the field value to one which matches this whole object.An upper bound on the maximum number of operand stack slots required for the execution of this method.static Pattern<LLJava.CodeMethodBody>
get_maxOperands
(Pattern<? super Integer> p) Lifts a pattern which matches the field value to one which matches this whole object.A stack map specifying the static type analysis of the code of this method.static Pattern<LLJava.CodeMethodBody>
get_stackMap
(Pattern<? super CheckedList<LLJava.StackFrameDelta>> p) Lifts a pattern which matches the field value to one which matches this whole object.The set of instructions requiring stack map information in the code of this method.static Pattern<LLJava.CodeMethodBody>
get_stackMapPlaces
(Pattern<? super CheckedSet<LLJava.Instruction>> 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
set_block
(LLJava.Block val) Generated by umod; model author's documentation MISSING.boolean
The table of exception handlers for the code of this method.boolean
set_maxLocals
(Integer val) An upper bound on the maximum number of local variable slots required for the execution of this method.boolean
set_maxOperands
(Integer val) An upper bound on the maximum number of operand stack slots required for the execution of this method.boolean
A stack map specifying the static type analysis of the code of this method.boolean
The set of instructions requiring stack map information in the code of this method.Methods inherited from class eu.bandm.tools.lljava.absy.LLJava.Node
get_location, get_location, set_location
-
Field Details
-
block
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":410.9-79, see this pretty print.)
The type of this field isLLJava.Block
(never null)
It is set by every possible constructor. -
exceptionTable
The table of exception handlers for the code of this method. This field is set by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1061.9-1062.13, see this pretty print.)ExceptionTableCollector
.
The type of this field isCheckedList
<LLJava.Exception
(never null)>(never null)
Its value defaults to an empty collection. -
maxLocals
An upper bound on the maximum number of local variable slots required for the execution of this method. This field is set by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1065.9-1066.13, see this pretty print.)TypeChecker
.
The type of this field isInteger
(maybe null)
Its value defaults to null. -
maxOperands
An upper bound on the maximum number of operand stack slots required for the execution of this method. This field is set by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1069.9-1070.13, see this pretty print.)TypeChecker
.
The type of this field isInteger
(maybe null)
Its value defaults to null. -
stackMapPlaces
The set of instructions requiring stack map information in the code of this method. This field is populated by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1073.9-1074.13, see this pretty print.)TypeChecker
.
The type of this field isCheckedSet
<LLJava.Instruction
(never null)>(never null)
Its value defaults to an empty collection. -
stackMap
A stack map specifying the static type analysis of the code of this method. This field is populated by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1077.9-1078.13, see this pretty print.)TypeChecker
.
The type of this field isCheckedList
<LLJava.StackFrameDelta
(never null)>(never null)
Its value defaults to an empty collection.
-
-
Constructor Details
-
CodeMethodBody
Constructor generated according to specification #0
Constructor defined according to directive "C 0/..".- Parameters:
block
- is copied to fieldblock
-
-
Method Details
-
doclone
Clones this object. Method never fails, sinceCloneable
is known to be implemented.- Overrides:
doclone
in classLLJava.MethodBody
- Returns:
- a fresh copy.
-
getFormatHint
Delivers the format specification from the umod source.
The constant return value is ..
'{'/>block{elems[/]}/>exceptionTable[/]/'}'
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.MethodBody
- 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.MethodBody
-
get_block
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":410.9-79, see this pretty print.)
Generated getter method.- Returns:
- The current field value of type
LLJava.Block
(never null) - See Also:
-
set_block
Generated by umod; model author's documentation MISSING.
(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":410.9-79, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeLLJava.Block
(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
get_exceptionTable
The table of exception handlers for the code of this method. This field is set by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1061.9-1062.13, see this pretty print.)ExceptionTableCollector
.
Generated getter method.- Returns:
- The current field value of type
CheckedList
<LLJava.Exception
(never null)>(never null) - See Also:
-
set_exceptionTable
The table of exception handlers for the code of this method. This field is set by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1061.9-1062.13, see this pretty print.)ExceptionTableCollector
.
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<LLJava.Exception
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_exceptionTable
Deprecated. -
get_maxLocals
An upper bound on the maximum number of local variable slots required for the execution of this method. This field is set by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1065.9-1066.13, see this pretty print.)TypeChecker
.
Generated getter method. -
set_maxLocals
An upper bound on the maximum number of local variable slots required for the execution of this method. This field is set by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1065.9-1066.13, see this pretty print.)TypeChecker
.
Updates the (mutable) instance destructively. -
get_maxOperands
An upper bound on the maximum number of operand stack slots required for the execution of this method. This field is set by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1069.9-1070.13, see this pretty print.)TypeChecker
.
Generated getter method.- Returns:
- The current field value of type
Integer
(maybe null) - See Also:
-
set_maxOperands
An upper bound on the maximum number of operand stack slots required for the execution of this method. This field is set by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1069.9-1070.13, see this pretty print.)TypeChecker
.
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeInteger
(maybe null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
get_stackMapPlaces
The set of instructions requiring stack map information in the code of this method. This field is populated by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1073.9-1074.13, see this pretty print.)TypeChecker
.
Generated getter method.- Returns:
- The current field value of type
CheckedSet
<LLJava.Instruction
(never null)>(never null) - See Also:
-
set_stackMapPlaces
The set of instructions requiring stack map information in the code of this method. This field is populated by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1073.9-1074.13, see this pretty print.)TypeChecker
.
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedSet
<LLJava.Instruction
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_stackMapPlaces
Deprecated. -
get_stackMap
A stack map specifying the static type analysis of the code of this method. This field is populated by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1077.9-1078.13, see this pretty print.)TypeChecker
.
Generated getter method.- Returns:
- The current field value of type
CheckedList
<LLJava.StackFrameDelta
(never null)>(never null) - See Also:
-
set_stackMap
A stack map specifying the static type analysis of the code of this method. This field is populated by the(This definition has been created by UMod from the source at SYSTEM "LLJava.umod":1077.9-1078.13, see this pretty print.)TypeChecker
.
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<LLJava.StackFrameDelta
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_stackMap
Deprecated. -
get_block
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_exceptionTable
public static Pattern<LLJava.CodeMethodBody> get_exceptionTable(Pattern<? super CheckedList<LLJava.Exception>> 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_maxLocals
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_maxOperands
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_stackMapPlaces
public static Pattern<LLJava.CodeMethodBody> get_stackMapPlaces(Pattern<? super CheckedSet<LLJava.Instruction>> 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_stackMap
public static Pattern<LLJava.CodeMethodBody> get_stackMap(Pattern<? super CheckedList<LLJava.StackFrameDelta>> 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
.
-