Package org.teavm.model
Class Instruction
- java.lang.Object
-
- org.teavm.model.Instruction
-
- Direct Known Subclasses:
ArrayLengthInstruction,AssignInstruction,BinaryBranchingInstruction,BinaryInstruction,BoundCheckInstruction,BranchingInstruction,CastInstruction,CastIntegerInstruction,CastNumberInstruction,ClassConstantInstruction,CloneArrayInstruction,ConstructArrayInstruction,ConstructInstruction,ConstructMultiArrayInstruction,DoubleConstantInstruction,EmptyInstruction,ExitInstruction,FloatConstantInstruction,GetElementInstruction,GetFieldInstruction,InitClassInstruction,IntegerConstantInstruction,InvokeDynamicInstruction,InvokeInstruction,IsInstanceInstruction,JumpInstruction,LongConstantInstruction,MonitorEnterInstruction,MonitorExitInstruction,NegateInstruction,NullCheckInstruction,NullConstantInstruction,PutElementInstruction,PutFieldInstruction,RaiseInstruction,StringConstantInstruction,SwitchInstruction,UnwrapArrayInstruction
public abstract class Instruction extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Instruction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidacceptVisitor(InstructionVisitor visitor)booleandelete()BasicBlockgetBasicBlock()TextLocationgetLocation()InstructiongetNext()InstructiongetPrevious()ProgramgetProgram()voidinsertNext(Instruction other)voidinsertNextAll(java.lang.Iterable<Instruction> other)voidinsertPrevious(Instruction other)voidinsertPreviousAll(java.lang.Iterable<Instruction> other)booleanreplace(Instruction other)voidsetLocation(TextLocation location)
-
-
-
Method Detail
-
getBasicBlock
public BasicBlock getBasicBlock()
-
getProgram
public Program getProgram()
-
getLocation
public TextLocation getLocation()
-
setLocation
public void setLocation(TextLocation location)
-
acceptVisitor
public abstract void acceptVisitor(InstructionVisitor visitor)
-
getNext
public Instruction getNext()
-
getPrevious
public Instruction getPrevious()
-
delete
public boolean delete()
-
replace
public boolean replace(Instruction other)
-
insertNext
public void insertNext(Instruction other)
-
insertNextAll
public void insertNextAll(java.lang.Iterable<Instruction> other)
-
insertPrevious
public void insertPrevious(Instruction other)
-
insertPreviousAll
public void insertPreviousAll(java.lang.Iterable<Instruction> other)
-
-