Package gnu.mapping
Class ArgListPair
java.lang.Object
gnu.lists.AbstractSequence<Object>
gnu.lists.ExtSequence<Object>
gnu.lists.LList
gnu.lists.Pair
gnu.lists.ImmutablePair
gnu.mapping.ArgListPair
- All Implemented Interfaces:
BoundedHashable,Consumable,Sequence<Object>,ArgList,Externalizable,Serializable,Comparable,Iterable<Object>,Collection<Object>,List<Object>,RandomAccess,SequencedCollection<Object>
- See Also:
-
Field Summary
Fields inherited from class gnu.lists.Pair
car, cdr, incompleteListMarkerFields inherited from class gnu.lists.AbstractSequence
noIntsFields inherited from interface gnu.lists.Sequence
ATTRIBUTE_VALUE, BOOLEAN_VALUE, CDATA_VALUE, CHAR_VALUE, COMMENT_VALUE, DOCUMENT_VALUE, DOUBLE_VALUE, ELEMENT_VALUE, EOF_VALUE, eofValue, FLOAT_VALUE, INT_S16_VALUE, INT_S32_VALUE, INT_S64_VALUE, INT_S8_VALUE, INT_U16_VALUE, INT_U32_VALUE, INT_U64_VALUE, INT_U8_VALUE, OBJECT_VALUE, PRIM_VALUE, PROCESSING_INSTRUCTION_VALUE, TEXT_BYTE_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfindKeyword(String key) Find index for keyword.intget(int index) See java.util.List.getArgAsObject(int i) Index into arguments, not counting keywords.static LListgetArgs(CallContext ctx) getCdr()getKeyword(int i) Get keyword (as an interned String) for given argument.intNumber of actual arguments.intintsize()See java.util.List.static LListvalueOf(ArgListVector args) static LListvalueOf(ArgListVector args, int skip) Methods inherited from class gnu.lists.ImmutablePair
setCar, setCdrMethods inherited from class gnu.lists.Pair
compareTo, compareTo, equals, equals, getCar, getPosNext, getPosPrevious, hasNext, isEmpty, lastPair, length, make, nextPos, readExternal, readResolve, setCarBackdoor, setCdrBackdoor, toArray, toArray, writeExternalMethods inherited from class gnu.lists.LList
boundedHash, chain1, chain4, checkNonList, consume, consX, createPos, createRelativePos, getIterator, hashCode, length, list1, list2, list3, list4, listLength, makeList, makeList, makeList, reverseInPlace, setPosNext, setPosPrevious, toStringMethods inherited from class gnu.lists.ExtSequence
copyPos, isAfterPos, nextIndex, releasePosMethods inherited from class gnu.lists.AbstractSequence
add, add, addAll, addAll, addPos, asImmutable, badRank, checkCanWrite, checkRank, clear, compare, compare, compare, consume, consumeNext, consumePosRange, contains, containsAll, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, elements, endPos, equals, fill, fill, fillPosRange, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, get, get, get, getAttribute, getAttributeLength, getBooleanRaw, getByteRaw, getCharRaw, getContainingSequenceSize, getDoubleRaw, getElementKind, getFloatRaw, getIndexDifference, getInt, getInt, getInt, getInt, getInt, getIntRaw, getIterator, getIteratorAtPos, getLongRaw, getLowBound, getNextKind, getNextTypeName, getNextTypeObject, getRaw, getRowMajor, getShortRaw, getSize, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hasPrevious, indexOf, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextMatching, parentPos, previousPos, rank, remove, remove, removeAll, removePos, removePosRange, retainAll, set, set, setAt, setBuffer, setRaw, stableCompare, startPos, subList, subSequence, subSequencePos, toString, unsupported, unsupportedExceptionMethods inherited from class java.lang.Object
clone, 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, clear, contains, containsAll, getFirst, getLast, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, subList
-
Constructor Details
-
ArgListPair
-
-
Method Details
-
getArgs
-
valueOf
-
valueOf
-
getArgAsObject
Description copied from interface:ArgListIndex into arguments, not counting keywords. I.e. for [a b k1: c k2: d e] the index 0 returns a, 2 returns c, 3 returns d, 4 returns e.- Specified by:
getArgAsObjectin interfaceArgList
-
getKeyword
Description copied from interface:ArgListGet keyword (as an interned String) for given argument. Indexing is the same as getArgAsObject. Return null for non-keyword arguments.- Specified by:
getKeywordin interfaceArgList
-
findKeyword
Description copied from interface:ArgListFind index for keyword.- Specified by:
findKeywordin interfaceArgList- Parameters:
key- an interned string
-
numArguments
public int numArguments()Description copied from interface:ArgListNumber of actual arguments. Each (keyword,argument)-pair counts as one (not two).- Specified by:
numArgumentsin interfaceArgList
-
numKeywords
public int numKeywords()- Specified by:
numKeywordsin interfaceArgList
-
firstKeyword
public int firstKeyword()- Specified by:
firstKeywordin interfaceArgList
-
size
public int size()Description copied from interface:SequenceSee java.util.List. -
get
Description copied from interface:SequenceSee java.util.List. -
getCdr
-