Package org.armedbear.lisp
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) int
aref
(int index) AREF
(int index) final LispObject
AREF
(LispObject index) long
aref_long
(int index) void
aset
(int index, int n) void
aset
(int index, LispObject newValue) final void
aset
(LispObject index, LispObject newValue) ash
(int shift) ash
(LispObject obj) boolean
atom()
final LispObject
ATOM()
final LispObject
caddr()
final LispObject
cadr()
final LispObject
car()
final LispObject
cddr()
final LispObject
cdr()
CHAR
(int index) boolean
final LispObject
char[]
chars()
classOf()
COMPLEXP()
boolean
final LispObject
decr()
dispatch
(LispObject[] args) divideBy
(LispObject obj) double
elt
(int index) final boolean
endp()
final LispObject
ENDP()
final LispObject
EQ
(LispObject obj) boolean
eql
(char c) boolean
eql
(int n) boolean
eql
(LispObject obj) final LispObject
EQL
(LispObject obj) boolean
equal
(int n) boolean
equal
(LispObject obj) final LispObject
EQUAL
(LispObject obj) boolean
equalp
(int n) boolean
equalp
(LispObject obj) boolean
evenp()
final LispObject
EVENP()
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) boolean
floatp()
final LispObject
FLOATP()
float
boolean
int
getDocumentation
(LispObject docType) int
getFixnumSlotValue
(int index) int
static LispObject
getInstance
(boolean b) getParts()
Implementing the getParts() protocol will allow INSPECT to return information about the substructure of a descendent of LispObject.getSlotValue
(int index) boolean
getSlotValueAsBoolean
(int index) char[]
Returns a string representing the value of a 'string designator', if the instance is one.incr()
void
void
boolean
integerp()
final LispObject
INTEGERP()
int
intValue()
final LispObject
IS_E
(LispObject obj) final LispObject
IS_GE
(LispObject obj) final LispObject
IS_GT
(LispObject obj) final LispObject
IS_LE
(LispObject obj) final LispObject
IS_LT
(LispObject obj) final LispObject
IS_NE
(LispObject obj) boolean
isEqualTo
(int n) boolean
isEqualTo
(LispObject obj) boolean
isGreaterThan
(int n) boolean
isGreaterThan
(LispObject obj) boolean
isGreaterThanOrEqualTo
(int n) boolean
boolean
isLessThan
(int n) boolean
isLessThan
(LispObject obj) boolean
isLessThanOrEqualTo
(int n) boolean
boolean
isNotEqualTo
(int n) boolean
isNotEqualTo
(LispObject obj) boolean
boolean
javaInstance
(Class<?> c) LDB
(int size, int position) int
length()
final LispObject
LENGTH()
final boolean
listp()
final LispObject
LISTP()
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) long
boolean
minusp()
final LispObject
MINUSP()
MOD
(int divisor) MOD
(LispObject divisor) multiplyBy
(int n) multiplyBy
(LispObject obj) negate()
final LispObject
NOT()
nreverse()
NTH
(int index) final LispObject
NTH
(LispObject arg) final LispObject
nthcdr
(int n) boolean
numberp()
final LispObject
NUMBERP()
boolean
oddp()
final LispObject
ODDP()
boolean
plusp()
final LispObject
PLUSP()
PRINC-TO-STRING function to be used with Java objectsint
psxhash()
int
psxhash
(int depth) final LispObject
push
(LispObject obj) boolean
final LispObject
boolean
realp()
final LispObject
REALP()
resolve()
Function to allow objects to return the value "they stand for".reverse()
RPLACA
(LispObject obj) RPLACD
(LispObject obj) SCHAR
(int index) void
setCallCount
(int n) final void
setCar
(LispObject obj) final void
setCdr
(LispObject obj) void
setDocumentation
(LispObject docType, LispObject documentation) void
setHotCount
(int n) void
void
setSlotValue
(int index, LispObject value) void
setSlotValue
(LispObject slotName, LispObject newValue) void
setSlotValue_0
(LispObject value) void
setSlotValue_1
(LispObject value) void
setSlotValue_2
(LispObject value) void
setSlotValue_3
(LispObject value) SLOT_VALUE
(LispObject slotName) STRING()
boolean
stringp()
final LispObject
STRINGP()
subtract
(int n) subtract
(LispObject obj) SVREF
(int index) void
svset
(int index, LispObject newValue) int
sxhash()
final LispObject
SYMBOLP()
truncate
(LispObject obj) typeOf()
typep
(LispObject typeSpecifier) final String
Calls unreadableString(String s, boolean identity) with a default identity value of 'true'.final String
unreadableString
(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) boolean
vectorp()
final LispObject
VECTORP()
void
vectorPushExtend
(LispObject element) boolean
zerop()
final LispObject
ZEROP()
-
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()
-