public class ElementList extends Object implements List<ObjectFile.Element>
ObjectFile
to maintain its list of
elements, the section->element index map and the name->element mapping.Modifier and Type | Field and Description |
---|---|
protected Map<String,ObjectFile.Element> |
elementForName |
Constructor and Description |
---|
ElementList() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
protected final Map<String,ObjectFile.Element> elementForName
public ObjectFile.Element forName(String name)
public int elementIndexToSectionIndex(int i)
public int sectionIndexToElementIndex(int sectionIndex)
public int sectionIndexToElementIndexNaive(int i)
public Iterator<ObjectFile.Section> sectionsIterator()
public int sectionsCount()
public int nonSectionsCount()
public boolean add(ObjectFile.Element arg)
add
in interface Collection<E>
add
in interface List<ObjectFile.Element>
public boolean addAll(Collection<? extends ObjectFile.Element> arg)
addAll
in interface Collection<E>
addAll
in interface List<ObjectFile.Element>
public void clear()
clear
in interface Collection<E>
clear
in interface List<ObjectFile.Element>
public boolean contains(Object arg)
contains
in interface Collection<E>
contains
in interface List<ObjectFile.Element>
public boolean containsAll(Collection<?> arg)
containsAll
in interface Collection<E>
containsAll
in interface List<ObjectFile.Element>
public boolean isEmpty()
isEmpty
in interface Collection<E>
isEmpty
in interface List<ObjectFile.Element>
public Iterator<ObjectFile.Element> iterator()
iterator
in interface Iterable<E>
iterator
in interface Collection<E>
iterator
in interface List<ObjectFile.Element>
public boolean remove(Object arg)
remove
in interface Collection<E>
remove
in interface List<ObjectFile.Element>
public boolean removeAll(Collection<?> arg0)
removeAll
in interface Collection<E>
removeAll
in interface List<ObjectFile.Element>
public boolean retainAll(Collection<?> arg0)
retainAll
in interface Collection<E>
retainAll
in interface List<ObjectFile.Element>
public int size()
size
in interface Collection<E>
size
in interface List<ObjectFile.Element>
public Object[] toArray()
toArray
in interface Collection<E>
toArray
in interface List<ObjectFile.Element>
public <T> T[] toArray(T[] arg)
toArray
in interface Collection<E>
toArray
in interface List<ObjectFile.Element>
public void add(int pos, ObjectFile.Element arg1)
add
in interface List<ObjectFile.Element>
public boolean addAll(int arg0, Collection<? extends ObjectFile.Element> arg1)
addAll
in interface List<ObjectFile.Element>
public boolean equals(Object arg0)
equals
in interface Collection<E>
equals
in interface List<ObjectFile.Element>
equals
in class Object
public ObjectFile.Element get(int arg0)
get
in interface List<ObjectFile.Element>
public int hashCode()
hashCode
in interface Collection<E>
hashCode
in interface List<ObjectFile.Element>
hashCode
in class Object
public int indexOf(Object arg0)
indexOf
in interface List<ObjectFile.Element>
public int lastIndexOf(Object arg0)
lastIndexOf
in interface List<ObjectFile.Element>
public ListIterator<ObjectFile.Element> listIterator()
listIterator
in interface List<ObjectFile.Element>
public ListIterator<ObjectFile.Element> listIterator(int arg0)
listIterator
in interface List<ObjectFile.Element>
public ObjectFile.Element remove(int arg0)
remove
in interface List<ObjectFile.Element>
public ObjectFile.Element set(int arg0, ObjectFile.Element arg1)
set
in interface List<ObjectFile.Element>
public List<ObjectFile.Element> subList(int arg0, int arg1)
subList
in interface List<ObjectFile.Element>