Class Resolver.Stack
java.lang.Object
java.util.AbstractCollection<M>
java.util.AbstractList<M>
java.util.AbstractSequentialList<M>
java.util.LinkedList<M>
org.simpleframework.xml.util.Resolver.Stack
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<M>, Collection<M>, Deque<M>, List<M>, Queue<M>, SequencedCollection<M>
This is used to store the
Match implementations in
resolution order. Resolving the match objects is performed so
that the last inserted match object is the first used in the
resolution process. This gives priority to the last inserted.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classThe is used to order theMatchobjects in the insertion order. -
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpurge(int index) Thepurgemethod is used to purge a match from the provided position.voidThepushmethod is used to push the match to the top of the stack.sequence()This is returned from theResolver.iteratorso that matches can be iterated in insertion order.Methods inherited from class LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, reversed, set, size, spliterator, toArray, toArrayMethods inherited from class AbstractSequentialList
iteratorMethods inherited from class AbstractList
equals, hashCode, listIterator, removeRange, subListMethods inherited from class AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Constructor Details
-
Stack
private Stack()
-
-
Method Details
-
push
Thepushmethod is used to push the match to the top of the stack. This also ensures that the cache is cleared so the semantics of the resolver are not affected. -
purge
public void purge(int index) Thepurgemethod is used to purge a match from the provided position. This also ensures that the cache is cleared so that the semantics of the resolver do not change.- Parameters:
index- the index of the match that is to be removed
-
sequence
-