public abstract class AbstractArray extends LispObject implements Serializable
Constructor and Description |
---|
AbstractArray() |
Modifier and Type | Method and Description |
---|---|
abstract AbstractArray |
adjustArray(int[] dims,
AbstractArray displacedTo,
int displacement) |
abstract AbstractArray |
adjustArray(int[] dims,
LispObject initialElement,
LispObject initialContents)
Returns a newly allocated array or the current array with
adjusted dimensions.
|
private void |
appendContents(int[] dimensions,
int index,
StringBuilder sb,
LispThread thread) |
LispObject |
arrayDisplacement() |
abstract void |
aset(int index,
LispObject newValue) |
protected static int |
computeTotalSize(int[] dimensions) |
boolean |
equalp(LispObject obj) |
abstract void |
fill(LispObject obj) |
LispObject |
get(int[] subscripts) |
abstract int |
getDimension(int n) |
abstract LispObject |
getDimensions() |
abstract LispObject |
getElementType() |
int |
getFillPointer() |
abstract int |
getRank() |
int |
getRowMajorIndex(int[] subscripts) |
int |
getRowMajorIndex(LispObject[] subscripts) |
abstract int |
getTotalSize() |
boolean |
hasFillPointer() |
boolean |
isAdjustable() |
boolean |
isDisplaced() |
int |
psxhash() |
void |
set(int[] subscripts,
LispObject newValue) |
void |
setFillPointer(int fillPointer) |
void |
setFillPointer(LispObject fillPointer) |
LispObject |
typep(LispObject type) |
String |
writeToString(int[] dimv) |
ABS, add, add, aref_long, aref, AREF, AREF, 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_0, getSlotValue_1, getSlotValue_2, getSlotValue_3, getSlotValue, 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, nreverse, NTH, NTH, nthcdr, numberp, NUMBERP, NUMERATOR, oddp, ODDP, plusp, PLUSP, psxhash, push, rationalp, RATIONALP, realp, REALP, resolve, reverse, RPLACA, RPLACD, SCHAR, setCallCount, setCar, setCdr, setDocumentation, setHotCount, setPropertyList, setSlotValue_0, setSlotValue_1, setSlotValue_2, setSlotValue_3, setSlotValue, setSlotValue, SIMPLE_STRING_P, SLOT_VALUE, STRING, stringp, STRINGP, subtract, subtract, SVREF, svset, sxhash, SYMBOLP, truncate, typeOf, unreadableString, unreadableString, unreadableString, unreadableString, VECTOR_PUSH_EXTEND, VECTOR_PUSH_EXTEND, vectorp, VECTORP, vectorPushExtend, writeToString, zerop, ZEROP
public LispObject typep(LispObject type)
typep
in class LispObject
public boolean equalp(LispObject obj)
equalp
in class LispObject
public boolean isDisplaced()
public LispObject arrayDisplacement()
public boolean hasFillPointer()
public int getFillPointer()
public void setFillPointer(LispObject fillPointer)
public void setFillPointer(int fillPointer)
public boolean isAdjustable()
public abstract int getRank()
public abstract LispObject getDimensions()
public abstract int getDimension(int n)
public abstract LispObject getElementType()
public abstract int getTotalSize()
public abstract void aset(int index, LispObject newValue)
aset
in class LispObject
protected static final int computeTotalSize(int[] dimensions)
public int getRowMajorIndex(LispObject[] subscripts)
public int getRowMajorIndex(int[] subscripts)
public LispObject get(int[] subscripts)
public void set(int[] subscripts, LispObject newValue)
public abstract void fill(LispObject obj)
public String writeToString(int[] dimv)
private void appendContents(int[] dimensions, int index, StringBuilder sb, LispThread thread)
public int psxhash()
psxhash
in class LispObject
public abstract AbstractArray adjustArray(int[] dims, LispObject initialElement, LispObject initialContents)
dims
- initialElement
- @c null if noneinitialContents
- @c null if nonepublic abstract AbstractArray adjustArray(int[] dims, AbstractArray displacedTo, int displacement)
dims
- displacedTo
- displacement
-