org.apache.bcel.verifier.structurals

Class Subroutines.SubroutineImpl

private class Subroutines.SubroutineImpl extends Object implements Subroutine

This inner class implements the Subroutine interface.
Constructor Summary
SubroutineImpl()
The default constructor.
Method Summary
voidaddEnteringJsrInstruction(InstructionHandle jsrInst)
Adds a new JSR or JSR_W that has this subroutine as its target.
booleancontains(InstructionHandle inst)
int[]getAccessedLocalsIndices()
InstructionHandle[]getEnteringJsrInstructions()
InstructionHandle[]getInstructions()
InstructionHandlegetLeavingRET()
int[]getRecursivelyAccessedLocalsIndices()
Subroutine[]subSubs()
StringtoString()
Returns a String representation of this object, merely for debugging purposes.

Constructor Detail

SubroutineImpl

public SubroutineImpl()
The default constructor.

Method Detail

addEnteringJsrInstruction

public void addEnteringJsrInstruction(InstructionHandle jsrInst)
Adds a new JSR or JSR_W that has this subroutine as its target.

contains

public boolean contains(InstructionHandle inst)

getAccessedLocalsIndices

public int[] getAccessedLocalsIndices()

getEnteringJsrInstructions

public InstructionHandle[] getEnteringJsrInstructions()

getInstructions

public InstructionHandle[] getInstructions()

getLeavingRET

public InstructionHandle getLeavingRET()

getRecursivelyAccessedLocalsIndices

public int[] getRecursivelyAccessedLocalsIndices()

subSubs

public Subroutine[] subSubs()

toString

public String toString()
Returns a String representation of this object, merely for debugging purposes. (Internal) Warning: Verbosity on a problematic subroutine may cause stack overflow errors due to recursive subSubs() calls. Don't use this, then.