Package org.teavm.model
Class BasicBlock
java.lang.Object
org.teavm.model.BasicBlock
- All Implemented Interfaces:
Iterable<Instruction>
,BasicBlockReader
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Instruction instruction) void
addAll
(Iterable<Instruction> instructions) void
addFirst
(Instruction instruction) void
addFirstAll
(Iterable<Instruction> instructions) void
int
getIndex()
getLabel()
getPhis()
int
iterator()
void
readAllInstructions
(InstructionReader reader) readPhis()
void
void
removeIncomingsFrom
(BasicBlock predecessor) void
setExceptionVariable
(Variable exceptionVariable) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getProgram
- Specified by:
getProgram
in interfaceBasicBlockReader
-
getIndex
public int getIndex()- Specified by:
getIndex
in interfaceBasicBlockReader
-
getFirstInstruction
-
getLastInstruction
-
iterator
- Specified by:
iterator
in interfaceIterable<Instruction>
-
addFirst
-
addAll
-
add
-
addFirstAll
-
removeAllInstructions
public void removeAllInstructions() -
getPhis
-
readPhis
- Specified by:
readPhis
in interfaceBasicBlockReader
-
instructionCount
public int instructionCount()- Specified by:
instructionCount
in interfaceBasicBlockReader
-
iterateInstructions
- Specified by:
iterateInstructions
in interfaceBasicBlockReader
-
readAllInstructions
- Specified by:
readAllInstructions
in interfaceBasicBlockReader
-
removeIncomingsFrom
-
readTryCatchBlocks
- Specified by:
readTryCatchBlocks
in interfaceBasicBlockReader
-
getTryCatchBlocks
-
getExceptionVariable
- Specified by:
getExceptionVariable
in interfaceBasicBlockReader
-
setExceptionVariable
-
getLabel
-
setLabel
-
detachSuccessors
public void detachSuccessors()
-