org.apache.bcel.verifier.structurals
private class Subroutines.SubroutineImpl extends Object implements Subroutine
| Field Summary | |
|---|---|
| Set | instructions The instructions that belong to this subroutine. |
| int | localVariable
The Local Variable slot where the first
instruction of this subroutine (an ASTORE) stores
the JsrInstruction's ReturnAddress in and
the RET of this subroutine operates on. |
| Set | theJSRs
The JSR or JSR_W instructions that define this
subroutine by targeting it. |
| InstructionHandle | theRET
The RET instruction that leaves this subroutine. |
| static int | UNSET
UNSET, a symbol for an uninitialized localVariable
field. |
| Constructor Summary | |
|---|---|
| SubroutineImpl()
The default constructor. | |
| Method Summary | |
|---|---|
| void | addEnteringJsrInstruction(InstructionHandle jsrInst)
Adds a new JSR or JSR_W that has this subroutine as its target. |
| void | addInstruction(InstructionHandle ih) |
| boolean | contains(InstructionHandle inst) |
| int[] | getAccessedLocalsIndices() |
| InstructionHandle[] | getEnteringJsrInstructions() |
| InstructionHandle[] | getInstructions() |
| InstructionHandle | getLeavingRET() |
| int[] | getRecursivelyAccessedLocalsIndices() |
| void | setLeavingRET()
Sets the leaving RET instruction. |
| void | setLocalVariable(int i) |
| Subroutine[] | subSubs() |
| String | toString()
Returns a String representation of this object, merely
for debugging purposes.
|
| void | _getRecursivelyAccessedLocalsIndicesHelper(Set s, Subroutine[] subs)
A recursive helper method for getRecursivelyAccessedLocalsIndices(). |
See Also: getRecursivelyAccessedLocalsIndices