public class Subroutines extends Object
getTopLevel()
Modifier and Type | Field and Description |
---|---|
Subroutine |
TOPLEVEL
This is referring to a special subroutine, namely the
top level.
|
Constructor and Description |
---|
Subroutines(MethodGen mg)
Constructor.
|
Modifier and Type | Method and 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.
|
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()
Copyright © 2017. All rights reserved.