Class BasicBlock
java.lang.Object
org.teavm.model.BasicBlock
- All Implemented Interfaces:
Iterable<Instruction>, BasicBlockReader
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Instruction instruction) voidaddAll(Iterable<Instruction> instructions) voidaddFirst(Instruction instruction) voidaddFirstAll(Iterable<Instruction> instructions) voidintgetIndex()getLabel()getPhis()intiterator()voidreadAllInstructions(InstructionReader reader) readPhis()voidvoidremoveIncomingsFrom(BasicBlock predecessor) voidsetExceptionVariable(Variable exceptionVariable) voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
getProgram
- Specified by:
getProgramin interfaceBasicBlockReader
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceBasicBlockReader
-
getFirstInstruction
-
getLastInstruction
-
iterator
- Specified by:
iteratorin interfaceIterable<Instruction>
-
addFirst
-
addAll
-
add
-
addFirstAll
-
removeAllInstructions
public void removeAllInstructions() -
getPhis
-
readPhis
- Specified by:
readPhisin interfaceBasicBlockReader
-
instructionCount
public int instructionCount()- Specified by:
instructionCountin interfaceBasicBlockReader
-
iterateInstructions
- Specified by:
iterateInstructionsin interfaceBasicBlockReader
-
readAllInstructions
- Specified by:
readAllInstructionsin interfaceBasicBlockReader
-
removeIncomingsFrom
-
readTryCatchBlocks
- Specified by:
readTryCatchBlocksin interfaceBasicBlockReader
-
getTryCatchBlocks
-
getExceptionVariable
- Specified by:
getExceptionVariablein interfaceBasicBlockReader
-
setExceptionVariable
-
getLabel
-
setLabel
-
detachSuccessors
public void detachSuccessors()
-