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 void
afterAdd(int index, Instruction item, boolean appended)
protected void
afterRemove(int index, Instruction item)
Instruction
atOffset(int offset)
protected void
beforeClear()
protected void
beforeSet(int index, Instruction item)
void
recomputeOffsets()
Instruction
tryGetAtOffset(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:
afterAdd
in classCollection<Instruction>
-
beforeSet
protected void beforeSet(int index, Instruction item)
- Overrides:
beforeSet
in classCollection<Instruction>
-
afterRemove
protected void afterRemove(int index, Instruction item)
- Overrides:
afterRemove
in classCollection<Instruction>
-
beforeClear
protected void beforeClear()
- Overrides:
beforeClear
in classCollection<Instruction>
-
recomputeOffsets
public void recomputeOffsets()
-
-