Package com.strobel.assembler.ir
Class InstructionCollection
- All Implemented Interfaces:
IFreezable,Iterable<Instruction>,Collection<Instruction>,List<Instruction>,SequencedCollection<Instruction>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterAdd(int index, Instruction item, boolean appended) protected voidafterRemove(int index, Instruction item) atOffset(int offset) protected voidprotected voidbeforeSet(int index, Instruction item) voidtryGetAtOffset(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, verifyNotFrozenMethods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
InstructionCollection
public InstructionCollection()
-
-
Method Details
-
atOffset
-
tryGetAtOffset
-
afterAdd
- Overrides:
afterAddin classCollection<Instruction>
-
beforeSet
- Overrides:
beforeSetin classCollection<Instruction>
-
afterRemove
- Overrides:
afterRemovein classCollection<Instruction>
-
beforeClear
protected void beforeClear()- Overrides:
beforeClearin classCollection<Instruction>
-
recomputeOffsets
public void recomputeOffsets()
-