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.
|
Subroutines(MethodGen mg,
boolean enableJustIceCheck)
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.
Assumes that JustIce strict checks are needed.public Subroutines(MethodGen mg, boolean enableJustIceCheck)
mg
- A MethodGen object representing method to
create the Subroutine objects of.enableJustIceCheck
- whether to enable additional JustIce checkspublic Subroutine getSubroutine(InstructionHandle leader)
getTopLevel()
public Subroutine subroutineOf(InstructionHandle any)
getSubroutine(InstructionHandle)
,
getTopLevel()
public Subroutine getTopLevel()
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.