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