Class LispObject
java.lang.Object
org.armedbear.lisp.LispObject
- Direct Known Subclasses:
AbstractArray, Complex, Cons, DoubleFloat, EMFCache, Environment, HashTable, JavaObject, Layout, LispCharacter, LispInteger, LispThread, Operator, Package, Pathname, RandomState, Ratio, Readtable, SingleFloat, StackFrame, StandardObject, StructureObject, Symbol, SymbolMacro, WeakHashTable, WeakReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionABS()add(int n) add(LispObject obj) intaref(int index) AREF(int index) final LispObjectAREF(LispObject index) longaref_long(int index) voidaset(int index, int n) voidaset(int index, LispObject newValue) final voidaset(LispObject index, LispObject newValue) ash(int shift) ash(LispObject obj) booleanatom()final LispObjectATOM()final LispObjectcaddr()final LispObjectcadr()final LispObjectcar()final LispObjectcddr()final LispObjectcdr()CHAR(int index) booleanfinal LispObjectchar[]chars()classOf()COMPLEXP()booleanfinal LispObjectdecr()dispatch(LispObject[] args) divideBy(LispObject obj) doubleelt(int index) final booleanendp()final LispObjectENDP()final LispObjectEQ(LispObject obj) booleaneql(char c) booleaneql(int n) booleaneql(LispObject obj) final LispObjectEQL(LispObject obj) booleanequal(int n) booleanequal(LispObject obj) final LispObjectEQUAL(LispObject obj) booleanequalp(int n) booleanequalp(LispObject obj) booleanevenp()final LispObjectEVENP()execute()execute(LispObject arg) execute(LispObject[] args) execute(LispObject args, Environment env) execute(LispObject first, LispObject second) execute(LispObject first, LispObject second, LispObject third) execute(LispObject first, LispObject second, LispObject third, LispObject fourth) execute(LispObject first, LispObject second, LispObject third, LispObject fourth, LispObject fifth) execute(LispObject first, LispObject second, LispObject third, LispObject fourth, LispObject fifth, LispObject sixth) execute(LispObject first, LispObject second, LispObject third, LispObject fourth, LispObject fifth, LispObject sixth, LispObject seventh) execute(LispObject first, LispObject second, LispObject third, LispObject fourth, LispObject fifth, LispObject sixth, LispObject seventh, LispObject eighth) booleanfloatp()final LispObjectFLOATP()floatbooleanintgetDocumentation(LispObject docType) intgetFixnumSlotValue(int index) intstatic LispObjectgetInstance(boolean b) getParts()Implementing the getParts() protocol will allow INSPECT to return information about the substructure of a descendent of LispObject.getSlotValue(int index) booleangetSlotValueAsBoolean(int index) char[]Returns a string representing the value of a 'string designator', if the instance is one.incr()voidvoidbooleanintegerp()final LispObjectINTEGERP()intintValue()final LispObjectIS_E(LispObject obj) final LispObjectIS_GE(LispObject obj) final LispObjectIS_GT(LispObject obj) final LispObjectIS_LE(LispObject obj) final LispObjectIS_LT(LispObject obj) final LispObjectIS_NE(LispObject obj) booleanisEqualTo(int n) booleanisEqualTo(LispObject obj) booleanisGreaterThan(int n) booleanisGreaterThan(LispObject obj) booleanisGreaterThanOrEqualTo(int n) booleanbooleanisLessThan(int n) booleanisLessThan(LispObject obj) booleanisLessThanOrEqualTo(int n) booleanbooleanisNotEqualTo(int n) booleanisNotEqualTo(LispObject obj) booleanbooleanjavaInstance(Class<?> c) LDB(int size, int position) intlength()final LispObjectLENGTH()final booleanlistp()final LispObjectLISTP()This method returns 'this' by default, but allows objects to return different values to increase Java interoperabilityLOGAND(int n) LOGAND(LispObject obj) LOGIOR(int n) LOGIOR(LispObject obj) LOGNOT()LOGXOR(int n) LOGXOR(LispObject obj) longbooleanminusp()final LispObjectMINUSP()MOD(int divisor) MOD(LispObject divisor) multiplyBy(int n) multiplyBy(LispObject obj) negate()final LispObjectNOT()nreverse()NTH(int index) final LispObjectNTH(LispObject arg) final LispObjectnthcdr(int n) booleannumberp()final LispObjectNUMBERP()booleanoddp()final LispObjectODDP()booleanplusp()final LispObjectPLUSP()PRINC-TO-STRING function to be used with Java objectsintpsxhash()intpsxhash(int depth) final LispObjectpush(LispObject obj) booleanfinal LispObjectbooleanrealp()final LispObjectREALP()resolve()Function to allow objects to return the value "they stand for".reverse()RPLACA(LispObject obj) RPLACD(LispObject obj) SCHAR(int index) voidsetCallCount(int n) final voidsetCar(LispObject obj) final voidsetCdr(LispObject obj) voidsetDocumentation(LispObject docType, LispObject documentation) voidsetHotCount(int n) voidvoidsetSlotValue(int index, LispObject value) voidsetSlotValue(LispObject slotName, LispObject newValue) voidsetSlotValue_0(LispObject value) voidsetSlotValue_1(LispObject value) voidsetSlotValue_2(LispObject value) voidsetSlotValue_3(LispObject value) SLOT_VALUE(LispObject slotName) STRING()booleanstringp()final LispObjectSTRINGP()subtract(int n) subtract(LispObject obj) SVREF(int index) voidsvset(int index, LispObject newValue) intsxhash()final LispObjectSYMBOLP()truncate(LispObject obj) typeOf()typep(LispObject typeSpecifier) final StringCalls unreadableString(String s, boolean identity) with a default identity value of 'true'.final StringunreadableString(String s, boolean identity) Creates a non-readably (as per CLHS terminology) representation of the 'this' object, using string 's'.VECTOR_PUSH_EXTEND(LispObject element) VECTOR_PUSH_EXTEND(LispObject element, LispObject extension) booleanvectorp()final LispObjectVECTORP()voidvectorPushExtend(LispObject element) booleanzerop()final LispObjectZEROP()
-
Constructor Details
-
LispObject
public LispObject()
-
-
Method Details
-
resolve
Function to allow objects to return the value "they stand for". Used by AutoloadedFunctionProxy to return the function it is proxying. -
typeOf
-
getInstance
-
classOf
-
getDescription
-
getParts
Implementing the getParts() protocol will allow INSPECT to return information about the substructure of a descendent of LispObject. The protocol is to return a List of Cons pairs, where the car of each pair contains a decriptive string, and the cdr returns a subobject for inspection. -
getBooleanValue
public boolean getBooleanValue() -
typep
-
constantp
public boolean constantp() -
CONSTANTP
-
ATOM
-
atom
public boolean atom() -
javaInstance
-
javaInstance
-
lockableInstance
This method returns 'this' by default, but allows objects to return different values to increase Java interoperability- Returns:
- An object to be used with synchronized, wait, notify, etc
-
car
-
setCar
-
RPLACA
-
cdr
-
setCdr
-
RPLACD
-
cadr
-
cddr
-
caddr
-
nthcdr
-
push
-
EQ
-
eql
public boolean eql(char c) -
eql
public boolean eql(int n) -
eql
-
EQL
-
EQUAL
-
equal
public boolean equal(int n) -
equal
-
equalp
public boolean equalp(int n) -
equalp
-
ABS
-
NUMERATOR
-
DENOMINATOR
-
EVENP
-
evenp
public boolean evenp() -
ODDP
-
oddp
public boolean oddp() -
PLUSP
-
plusp
public boolean plusp() -
MINUSP
-
minusp
public boolean minusp() -
NUMBERP
-
numberp
public boolean numberp() -
ZEROP
-
zerop
public boolean zerop() -
COMPLEXP
-
FLOATP
-
floatp
public boolean floatp() -
INTEGERP
-
integerp
public boolean integerp() -
RATIONALP
-
rationalp
public boolean rationalp() -
REALP
-
realp
public boolean realp() -
STRINGP
-
stringp
public boolean stringp() -
SIMPLE_STRING_P
-
VECTORP
-
vectorp
public boolean vectorp() -
CHARACTERP
-
characterp
public boolean characterp() -
length
public int length() -
LENGTH
-
CHAR
-
SCHAR
-
NTH
-
NTH
-
elt
-
reverse
-
nreverse
-
aref_long
public long aref_long(int index) -
aref
public int aref(int index) -
AREF
-
AREF
-
aset
public void aset(int index, int n) -
aset
-
aset
-
SVREF
-
svset
-
vectorPushExtend
-
VECTOR_PUSH_EXTEND
-
VECTOR_PUSH_EXTEND
-
noFillPointer
-
copyToArray
-
SYMBOLP
-
listp
public final boolean listp() -
LISTP
-
endp
public final boolean endp() -
ENDP
-
NOT
-
isSpecialOperator
public boolean isSpecialOperator() -
isSpecialVariable
public boolean isSpecialVariable() -
getDocumentation
-
setDocumentation
-
getPropertyList
-
setPropertyList
-
getSymbolValue
-
getSymbolFunction
-
getSymbolFunctionOrDie
-
getSymbolSetfFunction
-
getSymbolSetfFunctionOrDie
-
princToString
PRINC-TO-STRING function to be used with Java objects- Returns:
- A string in human-readable format, as per PRINC definition
-
printObject
-
unreadableString
Calls unreadableString(String s, boolean identity) with a default identity value of 'true'. This function is a helper for printObject()- Parameters:
s- String representation of this object.- Returns:
- String enclosed in the non-readable #invalid input: '<' ... > markers
-
unreadableString
Creates a non-readably (as per CLHS terminology) representation of the 'this' object, using string 's'. If the current value of the variable *PRINT-READABLY* is T, a Lisp error is thrown and no value is returned. This function is a helper for printObject()- Parameters:
s-identity- when 'true', includes Java's identityHash for the object in the output.- Returns:
- a non reabable string (i.e. one enclosed in the #invalid input: '<' > markers)
-
execute
-
execute
-
execute
-
execute
-
execute
-
execute
-
execute
public LispObject execute(LispObject first, LispObject second, LispObject third, LispObject fourth, LispObject fifth) -
execute
public LispObject execute(LispObject first, LispObject second, LispObject third, LispObject fourth, LispObject fifth, LispObject sixth) -
execute
public LispObject execute(LispObject first, LispObject second, LispObject third, LispObject fourth, LispObject fifth, LispObject sixth, LispObject seventh) -
execute
public LispObject execute(LispObject first, LispObject second, LispObject third, LispObject fourth, LispObject fifth, LispObject sixth, LispObject seventh, LispObject eighth) -
execute
-
dispatch
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue() -
doubleValue
public double doubleValue() -
incr
-
decr
-
negate
-
add
-
add
-
subtract
-
subtract
-
multiplyBy
-
multiplyBy
-
divideBy
-
isEqualTo
public boolean isEqualTo(int n) -
isEqualTo
-
IS_E
-
isNotEqualTo
public boolean isNotEqualTo(int n) -
isNotEqualTo
-
IS_NE
-
isLessThan
public boolean isLessThan(int n) -
isLessThan
-
IS_LT
-
isGreaterThan
public boolean isGreaterThan(int n) -
isGreaterThan
-
IS_GT
-
isLessThanOrEqualTo
public boolean isLessThanOrEqualTo(int n) -
isLessThanOrEqualTo
-
IS_LE
-
isGreaterThanOrEqualTo
public boolean isGreaterThanOrEqualTo(int n) -
isGreaterThanOrEqualTo
-
IS_GE
-
truncate
-
MOD
-
MOD
-
ash
-
ash
-
LOGNOT
-
LOGAND
-
LOGAND
-
LOGIOR
-
LOGIOR
-
LOGXOR
-
LOGXOR
-
LDB
-
sxhash
public int sxhash() -
psxhash
public int psxhash() -
psxhash
public int psxhash(int depth) -
STRING
-
chars
public char[] chars() -
getStringChars
public char[] getStringChars() -
getStringValue
Returns a string representing the value of a 'string designator', if the instance is one. Throws an error if the instance isn't a string designator. -
getSlotValue_0
-
getSlotValue_1
-
getSlotValue_2
-
getSlotValue_3
-
getSlotValue
-
getFixnumSlotValue
public int getFixnumSlotValue(int index) -
getSlotValueAsBoolean
public boolean getSlotValueAsBoolean(int index) -
setSlotValue_0
-
setSlotValue_1
-
setSlotValue_2
-
setSlotValue_3
-
setSlotValue
-
SLOT_VALUE
-
setSlotValue
-
getCallCount
public int getCallCount() -
setCallCount
public void setCallCount(int n) -
incrementCallCount
public void incrementCallCount() -
getHotCount
public int getHotCount() -
setHotCount
public void setHotCount(int n) -
incrementHotCount
public void incrementHotCount()
-