Package org.teavm.model
Class BasicBlock
- java.lang.Object
-
- org.teavm.model.BasicBlock
-
- All Implemented Interfaces:
Iterable<Instruction>,BasicBlockReader
public class BasicBlock extends Object implements BasicBlockReader, Iterable<Instruction>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Instruction instruction)voidaddAll(Iterable<Instruction> instructions)voidaddFirst(Instruction instruction)voidaddFirstAll(Iterable<Instruction> instructions)voiddetachSuccessors()VariablegetExceptionVariable()InstructiongetFirstInstruction()intgetIndex()StringgetLabel()InstructiongetLastInstruction()List<Phi>getPhis()ProgramgetProgram()List<TryCatchBlock>getTryCatchBlocks()intinstructionCount()InstructionIteratoriterateInstructions()Iterator<Instruction>iterator()voidreadAllInstructions(InstructionReader reader)List<? extends PhiReader>readPhis()List<TryCatchBlock>readTryCatchBlocks()voidremoveAllInstructions()voidremoveIncomingsFrom(BasicBlock predecessor)voidsetExceptionVariable(Variable exceptionVariable)voidsetLabel(String label)-
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 Detail
-
getProgram
public Program getProgram()
- Specified by:
getProgramin interfaceBasicBlockReader
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceBasicBlockReader
-
getFirstInstruction
public Instruction getFirstInstruction()
-
getLastInstruction
public Instruction getLastInstruction()
-
iterator
public Iterator<Instruction> iterator()
- Specified by:
iteratorin interfaceIterable<Instruction>
-
addFirst
public void addFirst(Instruction instruction)
-
addAll
public void addAll(Iterable<Instruction> instructions)
-
add
public void add(Instruction instruction)
-
addFirstAll
public void addFirstAll(Iterable<Instruction> instructions)
-
removeAllInstructions
public void removeAllInstructions()
-
readPhis
public List<? extends PhiReader> readPhis()
- Specified by:
readPhisin interfaceBasicBlockReader
-
instructionCount
public int instructionCount()
- Specified by:
instructionCountin interfaceBasicBlockReader
-
iterateInstructions
public InstructionIterator iterateInstructions()
- Specified by:
iterateInstructionsin interfaceBasicBlockReader
-
readAllInstructions
public void readAllInstructions(InstructionReader reader)
- Specified by:
readAllInstructionsin interfaceBasicBlockReader
-
removeIncomingsFrom
public void removeIncomingsFrom(BasicBlock predecessor)
-
readTryCatchBlocks
public List<TryCatchBlock> readTryCatchBlocks()
- Specified by:
readTryCatchBlocksin interfaceBasicBlockReader
-
getTryCatchBlocks
public List<TryCatchBlock> getTryCatchBlocks()
-
getExceptionVariable
public Variable getExceptionVariable()
- Specified by:
getExceptionVariablein interfaceBasicBlockReader
-
setExceptionVariable
public void setExceptionVariable(Variable exceptionVariable)
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
detachSuccessors
public void detachSuccessors()
-
-