|
|||||||||
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.SClosure
public final class SClosure
The class representing Scheme closures.
Field Summary |
---|
Fields inherited from class org.rubato.scheme.SExpr |
---|
NULL, VOID |
Constructor Summary | |
---|---|
SClosure(SExpr args,
SExpr body,
Env env)
Creates a closure with list of arguments args ,
the given body and environment env . |
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. |
SExpr |
getArgs()
Returns the arguments of this closure; |
SExpr |
getBody()
Returns the body of this closure; |
Env |
getEnv()
Returns the environment of this closure. |
boolean |
isClosure()
Returns true iff this is a closure. |
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, isComplex, isCons, isDenotator, isForm, isInteger, isList, isNull, isNumber, isPair, isPrimitive, 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 SClosure(SExpr args, SExpr body, Env env)
args
,
the given body
and environment env
.
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 isClosure()
SExpr
isClosure
in class SExpr
public java.lang.String toString()
SExpr
toString
in class SExpr
public java.lang.String display()
SExpr
display
in class SExpr
public Env getEnv()
public SExpr getArgs()
public SExpr getBody()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |