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 void
afterAdd
(int index, Instruction item, boolean appended) protected void
afterRemove
(int index, Instruction item) atOffset
(int offset) protected void
protected void
beforeSet
(int index, Instruction item) void
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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
afterAdd
in classCollection<Instruction>
-
beforeSet
- Overrides:
beforeSet
in classCollection<Instruction>
-
afterRemove
- Overrides:
afterRemove
in classCollection<Instruction>
-
beforeClear
protected void beforeClear()- Overrides:
beforeClear
in classCollection<Instruction>
-
recomputeOffsets
public void recomputeOffsets()
-