Package com.strobel.assembler.ir
Class InstructionCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- com.strobel.assembler.Collection<Instruction>
-
- com.strobel.assembler.ir.InstructionCollection
-
- All Implemented Interfaces:
IFreezable,java.lang.Iterable<Instruction>,java.util.Collection<Instruction>,java.util.List<Instruction>
public final class InstructionCollection extends Collection<Instruction>
-
-
Constructor Summary
Constructors Constructor Description InstructionCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterAdd(int index, Instruction item, boolean appended)protected voidafterRemove(int index, Instruction item)InstructionatOffset(int offset)protected voidbeforeClear()protected voidbeforeSet(int index, Instruction item)voidrecomputeOffsets()InstructiontryGetAtOffset(int offset)-
Methods inherited from class com.strobel.assembler.Collection
add, add, addCore, canFreeze, clear, freeze, freeze, freezeCore, freezeIfUnfrozen, get, isFrozen, remove, remove, set, size, tryFreeze, verifyFrozen, verifyNotFrozen
-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Method Detail
-
atOffset
public Instruction atOffset(int offset)
-
tryGetAtOffset
public Instruction tryGetAtOffset(int offset)
-
afterAdd
protected void afterAdd(int index, Instruction item, boolean appended)- Overrides:
afterAddin classCollection<Instruction>
-
beforeSet
protected void beforeSet(int index, Instruction item)- Overrides:
beforeSetin classCollection<Instruction>
-
afterRemove
protected void afterRemove(int index, Instruction item)- Overrides:
afterRemovein classCollection<Instruction>
-
beforeClear
protected void beforeClear()
- Overrides:
beforeClearin classCollection<Instruction>
-
recomputeOffsets
public void recomputeOffsets()
-
-