Package org.qdl_lang.variables
Class StemPath<V extends StemPathEntry>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<V>
-
- org.qdl_lang.variables.StemPath<V>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<V>
,Collection<V>
,List<V>
,RandomAccess
public class StemPath<V extends StemPathEntry> extends ArrayList<V>
A path in a stem. Unlike the . (child of operator) these have been resolved and can be passed around. They are of the form(` | · ) vpath0 (` | · ) vpath1 (` | · ) ...
where each component is vencoded. E.g.`0`foo$2Ebar`back$60tick
or·0·foo$2Ebar·back$60tick
I.e. a raised dot or backtick means that no tail resolution should take place.Contract
This contains only v-encoded elements. There are setters to optional encode if needed, but it is up to the programmer to make sure of the integrity of the entries.Created by Jeff Gaynor
on 6/7/21 at 8:51 AM- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description StemPath()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isPath(String path)
static void
main(String[] args)
void
parsePath(String path)
String
toPath(boolean useUnicode)
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-