|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.scheme.SExpr
org.rubato.scheme.SPrimitive
public final class SPrimitive
The class representing primitive functions as Scheme values.
Field Summary |
---|
Fields inherited from class org.rubato.scheme.SExpr |
---|
NULL, VOID |
Constructor Summary | |
---|---|
SPrimitive(Primitive p)
Creates a primitive function value from the primitive p . |
Method Summary | |
---|---|
java.lang.String |
display()
Returns a string representation of this SExpr. |
boolean |
eq_p(SExpr sexpr)
Returns true iff this is equal to sexpr in the eq? sense. |
boolean |
equal_p(SExpr sexpr)
Returns true iff this is equal to sexpr in the equal? sense. |
boolean |
equals(java.lang.Object obj)
Returns true iff this is equal to obj . |
boolean |
eqv_p(SExpr sexpr)
Returns true iff this is equal to sexpr in the eqv? sense. |
Primitive |
getPrimitive()
Returns the primitive function in this Scheme value. |
boolean |
isPrimitive()
Returns true iff this is a primitive function. |
java.lang.String |
toString()
Returns a string representation of this SExpr. |
Methods inherited from class org.rubato.scheme.SExpr |
---|
car, cdr, cons, getCar, getCdr, getLength, isBoolean, isChar, isClosure, isComplex, isCons, isDenotator, isForm, isInteger, isList, isNull, isNumber, isPair, isRational, isReal, isString, isSymbol, isVector, isVoid, nth, setCar, setCdr |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SPrimitive(Primitive p)
p
.
Method Detail |
---|
public boolean eq_p(SExpr sexpr)
SExpr
sexpr
in the eq? sense.
eq_p
in class SExpr
public boolean eqv_p(SExpr sexpr)
SExpr
sexpr
in the eqv? sense.
eqv_p
in class SExpr
public boolean equal_p(SExpr sexpr)
SExpr
sexpr
in the equal? sense.
equal_p
in class SExpr
public boolean equals(java.lang.Object obj)
SExpr
obj
. Normally this
returns the same result as SExpr.equal_p(org.rubato.scheme.SExpr)
.
equals
in class SExpr
public boolean isPrimitive()
SExpr
isPrimitive
in class SExpr
public java.lang.String toString()
SExpr
toString
in class SExpr
public java.lang.String display()
SExpr
display
in class SExpr
public Primitive getPrimitive()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |