public class Subroutines
extends java.lang.Object
getTopLevel()
Modifier and Type | Field | Description |
---|---|---|
Subroutine |
TOPLEVEL |
This is referring to a special subroutine, namely the
top level.
|
Constructor | Description |
---|---|
Subroutines(MethodGen mg) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Subroutine |
getSubroutine(InstructionHandle leader) |
Returns the Subroutine object associated with the given
leader (that is, the first instruction of the subroutine).
|
Subroutine |
getTopLevel() |
For easy handling, the piece of code that is not a
subroutine, the top-level, is also modeled as a Subroutine
object.
|
Subroutine |
subroutineOf(InstructionHandle any) |
Returns the subroutine object associated with the
given instruction.
|
java.lang.String |
toString() |
Returns a String representation of this object; merely for debugging puposes.
|
public final Subroutine TOPLEVEL
public Subroutines(MethodGen mg)
mg
- A MethodGen object representing method to
create the Subroutine objects of.public Subroutine getSubroutine(InstructionHandle leader)
getTopLevel()
public Subroutine subroutineOf(InstructionHandle any)
getSubroutine(InstructionHandle)
,
getTopLevel()
public Subroutine getTopLevel()
public java.lang.String toString()
toString
in class java.lang.Object