Class WalkedPath
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<PathStep>, Collection<PathStep>, List<PathStep>, RandomAccess
DataStructure used by a SpecTransform during it's parallel tree walk.
Basically this is Stack that records the steps down the tree that have been taken.
For each level, there is a PathStep, which contains a pointer the data of that level,
and a pointer to the LiteralPathElement matched at that level.
At any given point in time, it represents where in the tree walk a Spec is operating.
It is primarily used to by the ShiftrLeafSpec and CardinalityLeafSpec as a reference
to lookup real values for output "invalid input: '&'(1,1)" references.
It is expected that as the SpecTransform navigates down the tree, MatchedElements will be added and then
removed when that subtree has been walked.
- See Also:
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(Object treeRef, MatchedElement matchedElement) Convenience methodelementFromEnd(int idxFromEnd) Method useful to "invalid input: '&'", "invalid input: '&'1", "invalid input: '&'2", etc evaluation.voidMethods inherited from class ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class AbstractList
equals, hashCodeMethods inherited from class AbstractCollection
containsAll, toStringMethods inherited from interface Collection
parallelStream, streamMethods inherited from interface List
containsAll, equals, hashCode
-
Constructor Details
-
WalkedPath
public WalkedPath() -
WalkedPath
-
WalkedPath
-
-
Method Details
-
add
Convenience method -
removeLast
public void removeLast() -
elementFromEnd
Method useful to "invalid input: '&'", "invalid input: '&'1", "invalid input: '&'2", etc evaluation. -
lastElement
-