FileDocCategorySizeDatePackage
Subroutine.javaAPI DocJava SE 5 API5109Fri Aug 26 14:55:26 BST 2005com.sun.org.apache.bcel.internal.verifier.structurals

Subroutine

public interface Subroutine
This interface defines properties of JVM bytecode subroutines. Note that it is 'abused' to maintain the top-level code in a consistent fashion, too.
version
$Id: Subroutine.java,v 1.1.1.1 2001/10/29 20:00:42 jvanzyl Exp $
author
Enver Haase

Fields Summary
Constructors Summary
Methods Summary
public booleancontains(com.sun.org.apache.bcel.internal.generic.InstructionHandle inst)
Returns if the given InstructionHandle refers to an instruction that is part of this subroutine. This is a convenience method that saves iteration over the InstructionHandle objects returned by getInstructions().

see
#getInstructions()

public int[]getAccessedLocalsIndices()
Returns an int[] containing the indices of the local variable slots accessed by this Subroutine (read-accessed, write-accessed or both); local variables referenced by subroutines of this subroutine are not included.

see
#getRecursivelyAccessedLocalsIndices()

public com.sun.org.apache.bcel.internal.generic.InstructionHandle[]getEnteringJsrInstructions()
Returns all the JsrInstructions that have the first instruction of this subroutine as their target. Must not be invoked on the 'top-level subroutine'.

public com.sun.org.apache.bcel.internal.generic.InstructionHandle[]getInstructions()
Returns all instructions that together form this subroutine. Note that an instruction is part of exactly one subroutine (the top-level code is considered to be a special subroutine) - else it is not reachable at all (dead code).

public com.sun.org.apache.bcel.internal.generic.InstructionHandlegetLeavingRET()
Returns the one and only RET that leaves the subroutine. Note that JustIce has a pretty rigid notion of a subroutine. Must not be invoked on the 'top-level subroutine'.

see
com.sun.org.apache.bcel.internal.verifier.structurals.Subroutines

public int[]getRecursivelyAccessedLocalsIndices()
Returns an int[] containing the indices of the local variable slots accessed by this Subroutine (read-accessed, write-accessed or both); local variables referenced by subroutines of this subroutine are included.

see
#getAccessedLocalsIndices()

public com.sun.org.apache.bcel.internal.verifier.structurals.Subroutine[]subSubs()
Returns the subroutines that are directly called from this subroutine.