public class InstructionArray extends Object implements Collection<Instruction>
Constructor and Description |
---|
InstructionArray() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Instruction e) |
boolean |
addAll(Collection<? extends Instruction> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
Instruction |
getFromId(int id) |
Instruction |
getFromPc(int pc) |
int |
getIndexFromPc(int pc) |
int |
getPcFromIndex(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<Instruction> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
parallelStream, removeIf, spliterator, stream
public boolean add(Instruction e)
add
in interface Collection<Instruction>
public boolean addAll(Collection<? extends Instruction> c)
addAll
in interface Collection<Instruction>
public boolean contains(Object o)
contains
in interface Collection<Instruction>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Instruction>
public boolean equals(Object o)
equals
in interface Collection<Instruction>
equals
in class Object
public int hashCode()
hashCode
in interface Collection<Instruction>
hashCode
in class Object
public int indexOf(Object o)
public boolean isEmpty()
isEmpty
in interface Collection<Instruction>
public Iterator<Instruction> iterator()
iterator
in interface Iterable<Instruction>
iterator
in interface Collection<Instruction>
public void clear()
clear
in interface Collection<Instruction>
public boolean remove(Object o)
remove
in interface Collection<Instruction>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Instruction>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<Instruction>
public int size()
size
in interface Collection<Instruction>
public Object[] toArray()
toArray
in interface Collection<Instruction>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<Instruction>
public int getIndexFromPc(int pc)
pc
- the byte code index.public int getPcFromIndex(int index)
index
- the instruction index.public Instruction getFromId(int id)
id
- public Instruction getFromPc(int pc)
pc
-