Class SchemeBoolean
java.lang.Object
|
+--SchemeObject
|
+--SchemeBoolean
- public class SchemeBoolean
- extends SchemeObject
This class implements Scheme boolean objects.
This is the class can has only two instances,
#t and #f.
Methods inherited from class SchemeObject |
cadddr, caddr, cadr, car, cdar, cddr, cdr, getCar, getCdr, read, read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TRUE
public static final SchemeBoolean TRUE
FALSE
public static final SchemeBoolean FALSE
getTrue
public static SchemeBoolean getTrue()
- Get the #t object.
getFalse
public static SchemeBoolean getFalse()
- Get the #f object.
getBoolean
public static SchemeBoolean getBoolean(boolean b)
- Get the #t or #f object.
- Parameters:
b
-
getValue
public boolean getValue()
- get the value of this boolean object.
toString
public java.lang.String toString()
- Convert the boolean object to a printable string.
- Overrides:
toString
in class java.lang.Object