Class InstructionSequence
- java.lang.Object
-
- org.jetbrains.java.decompiler.code.InstructionSequence
-
- All Implemented Interfaces:
java.lang.Iterable<Instruction>
- Direct Known Subclasses:
FullInstructionSequence,SimpleInstructionSequence
public abstract class InstructionSequence extends java.lang.Object implements java.lang.Iterable<Instruction>
-
-
Field Summary
Fields Modifier and Type Field Description protected VBStyleCollection<Instruction,java.lang.Integer>collinstrprotected ExceptionTableexceptionTableprotected intpointer
-
Constructor Summary
Constructors Modifier Constructor Description protectedInstructionSequence()protectedInstructionSequence(VBStyleCollection<Instruction,java.lang.Integer> collinstr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInstruction(int index, Instruction inst, int offset)voidaddInstruction(Instruction inst, int offset)voidaddSequence(InstructionSequence seq)voidaddToPointer(int diff)voidclear()InstructionSequenceclone()ExceptionTablegetExceptionTable()InstructiongetInstr(int index)InstructiongetLastInstr()intgetOffset(int index)intgetPointer()intgetPointerByAbsOffset(int offset)intgetPointerByRelOffset(int offset)booleanisEmpty()java.util.Iterator<Instruction>iterator()intlength()voidremoveInstruction(int index)voidremoveInstruction(Instruction inst)voidremoveLast()voidsetPointer(int pointer)java.lang.StringtoString()java.lang.StringtoString(int indent)
-
-
-
Field Detail
-
collinstr
protected final VBStyleCollection<Instruction,java.lang.Integer> collinstr
-
pointer
protected int pointer
-
exceptionTable
protected ExceptionTable exceptionTable
-
-
Constructor Detail
-
InstructionSequence
protected InstructionSequence()
-
InstructionSequence
protected InstructionSequence(VBStyleCollection<Instruction,java.lang.Integer> collinstr)
-
-
Method Detail
-
clone
public InstructionSequence clone()
- Overrides:
clonein classjava.lang.Object
-
clear
public void clear()
-
addInstruction
public void addInstruction(Instruction inst, int offset)
-
addInstruction
public void addInstruction(int index, Instruction inst, int offset)
-
addSequence
public void addSequence(InstructionSequence seq)
-
removeInstruction
public void removeInstruction(int index)
-
removeInstruction
public void removeInstruction(Instruction inst)
-
removeLast
public void removeLast()
-
getInstr
public Instruction getInstr(int index)
-
getLastInstr
public Instruction getLastInstr()
-
getOffset
public int getOffset(int index)
-
getPointerByAbsOffset
public int getPointerByAbsOffset(int offset)
-
getPointerByRelOffset
public int getPointerByRelOffset(int offset)
-
length
public int length()
-
isEmpty
public boolean isEmpty()
-
addToPointer
public void addToPointer(int diff)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(int indent)
-
getPointer
public int getPointer()
-
setPointer
public void setPointer(int pointer)
-
getExceptionTable
public ExceptionTable getExceptionTable()
-
iterator
public java.util.Iterator<Instruction> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<Instruction>
-
-