Package org.eclipse.epsilon.flexmi.yaml
Class LocatedArrayList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
org.eclipse.epsilon.flexmi.yaml.LocatedArrayList<E>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,List<E>,RandomAccess,SequencedCollection<E>,LocatedList<E>
Subclass of an ArrayList which keeps track of the YAML representation tree
node that each value came from.
Note: this class is only meant to be used during the loading of a YAML
document. It assumes the only changes made to the list are to add elements
during the loading process.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddWithLocation(org.yaml.snakeyaml.nodes.Node n, E value) voidclear()org.yaml.snakeyaml.nodes.SequenceNodeorg.yaml.snakeyaml.nodes.NodegetLocation(int i) remove(int index) voidsetLocation(org.yaml.snakeyaml.nodes.SequenceNode sn) Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
LocatedArrayList
public LocatedArrayList() -
LocatedArrayList
public LocatedArrayList(int initialCapacity)
-
-
Method Details
-
addWithLocation
- Specified by:
addWithLocationin interfaceLocatedList<E>
-
getLocation
public org.yaml.snakeyaml.nodes.Node getLocation(int i) - Specified by:
getLocationin interfaceLocatedList<E>
-
remove
-
clear
public void clear() -
getLocation
public org.yaml.snakeyaml.nodes.SequenceNode getLocation()- Specified by:
getLocationin interfaceLocatedList<E>
-
setLocation
public void setLocation(org.yaml.snakeyaml.nodes.SequenceNode sn) - Specified by:
setLocationin interfaceLocatedList<E>
-