Class AbstractVector
java.lang.Object
org.armedbear.lisp.LispObject
org.armedbear.lisp.AbstractArray
org.armedbear.lisp.AbstractVector
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractBitVector, AbstractString, BasicVector_ByteBuffer, BasicVector_CharBuffer, BasicVector_IntBuffer, BasicVector_UnsignedByte16, BasicVector_UnsignedByte32, BasicVector_UnsignedByte8, ComplexVector, ComplexVector_ByteBuffer, ComplexVector_IntBuffer, ComplexVector_UnsignedByte32, ComplexVector_UnsignedByte8, SimpleVector
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadjustArray(int[] dims, AbstractArray displacedTo, int displacement) adjustArray(int[] dims, LispObject initialElement, LispObject initialContents) Returns a newly allocated array or the current array with adjusted dimensions.abstract AbstractArrayadjustArray(int size, AbstractArray displacedTo, int displacement) abstract AbstractArrayadjustArray(int size, LispObject initialElement, LispObject initialContents) protected voidbadIndex(int index, int limit) abstract intcapacity()intcheckIndex(int index) deleteEq(LispObject item) deleteEql(LispObject item) booleanequalp(LispObject obj) final intgetDimension(int n) final LispObjectfinal intgetRank()final intbooleannreverse()intpsxhash()abstract LispObjectreverse()voidsetFillPointer(int n) voidsetFillPointer(LispObject obj) abstract voidshrink(int n) abstract LispObjectsubseq(int start, int end) typep(LispObject type) final booleanvectorp()Methods inherited from class AbstractArray
arrayDisplacement, aset, computeTotalSize, fill, get, getElementType, getFillPointer, getRowMajorIndex, getRowMajorIndex, hasFillPointer, isAdjustable, isDisplaced, printObject, setMethods inherited from class LispObject
ABS, add, add, aref, AREF, AREF, aref_long, aset, aset, ash, ash, atom, ATOM, caddr, cadr, car, cddr, cdr, CHAR, characterp, CHARACTERP, chars, classOf, COMPLEXP, constantp, CONSTANTP, copyToArray, decr, DENOMINATOR, dispatch, divideBy, doubleValue, elt, endp, ENDP, EQ, eql, eql, eql, EQL, equal, equal, EQUAL, equalp, evenp, EVENP, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, floatp, FLOATP, floatValue, getBooleanValue, getCallCount, getDescription, getDocumentation, getFixnumSlotValue, getHotCount, getInstance, getParts, getPropertyList, getSlotValue, getSlotValue_0, getSlotValue_1, getSlotValue_2, getSlotValue_3, getSlotValueAsBoolean, getStringChars, getStringValue, getSymbolFunction, getSymbolFunctionOrDie, getSymbolSetfFunction, getSymbolSetfFunctionOrDie, getSymbolValue, incr, incrementCallCount, incrementHotCount, integerp, INTEGERP, intValue, IS_E, IS_GE, IS_GT, IS_LE, IS_LT, IS_NE, isEqualTo, isEqualTo, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualTo, isNotEqualTo, isNotEqualTo, isSpecialOperator, isSpecialVariable, javaInstance, javaInstance, LDB, length, LENGTH, listp, LISTP, lockableInstance, LOGAND, LOGAND, LOGIOR, LOGIOR, LOGNOT, LOGXOR, LOGXOR, longValue, minusp, MINUSP, MOD, MOD, multiplyBy, multiplyBy, negate, noFillPointer, NOT, NTH, NTH, nthcdr, numberp, NUMBERP, NUMERATOR, oddp, ODDP, plusp, PLUSP, princToString, psxhash, push, rationalp, RATIONALP, realp, REALP, resolve, RPLACA, RPLACD, SCHAR, setCallCount, setCar, setCdr, setDocumentation, setHotCount, setPropertyList, setSlotValue, setSlotValue, setSlotValue_0, setSlotValue_1, setSlotValue_2, setSlotValue_3, SIMPLE_STRING_P, SLOT_VALUE, STRING, stringp, STRINGP, subtract, subtract, SVREF, svset, sxhash, SYMBOLP, truncate, typeOf, unreadableString, unreadableString, VECTOR_PUSH_EXTEND, VECTOR_PUSH_EXTEND, VECTORP, vectorPushExtend, zerop, ZEROP
-
Constructor Details
-
AbstractVector
public AbstractVector()
-
-
Method Details
-
typep
- Overrides:
typepin classAbstractArray
-
vectorp
public final boolean vectorp()- Overrides:
vectorpin classLispObject
-
equalp
- Overrides:
equalpin classAbstractArray
-
getRank
public final int getRank()- Specified by:
getRankin classAbstractArray
-
getDimensions
- Specified by:
getDimensionsin classAbstractArray
-
getDimension
public final int getDimension(int n) - Specified by:
getDimensionin classAbstractArray
-
getTotalSize
public final int getTotalSize()- Specified by:
getTotalSizein classAbstractArray
-
capacity
public abstract int capacity() -
subseq
-
deleteEq
-
deleteEql
-
shrink
public abstract void shrink(int n) -
checkIndex
public int checkIndex(int index) -
badIndex
protected void badIndex(int index, int limit) -
setFillPointer
public void setFillPointer(int n) - Overrides:
setFillPointerin classAbstractArray
-
setFillPointer
- Overrides:
setFillPointerin classAbstractArray
-
isSimpleVector
public boolean isSimpleVector() -
reverse
- Overrides:
reversein classLispObject
-
nreverse
- Overrides:
nreversein classLispObject
-
printObject
- Overrides:
printObjectin classLispObject
-
psxhash
public int psxhash()- Overrides:
psxhashin classAbstractArray
-
adjustArray
public abstract AbstractArray adjustArray(int size, LispObject initialElement, LispObject initialContents) -
adjustArray
-
adjustArray
Description copied from class:AbstractArrayReturns a newly allocated array or the current array with adjusted dimensions.- Specified by:
adjustArrayin classAbstractArray- Parameters:
dims-initialElement- @c null if noneinitialContents- @c null if none- Returns:
- @c this or a new array
-
adjustArray
- Specified by:
adjustArrayin classAbstractArray- Parameters:
dims-displacedTo-displacement-- Returns:
-