|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Boolean
The ATBoolean represents the public interface of a boolean object.
Method Summary | |
---|---|
Boolean |
and:(Closure other)
Returns false if the receiver is false or the result of the evaluation of the other boolean expression passed as argument if the receiver is true. |
Boolean |
and:and:(Closure b1,
Closure b2)
Auxiliary function:
def boolean.and: b1 and: b2 {
(boolean.and: b1).and: b2
}
|
Object |
ifFalse:(Closure alternative)
Returns an ATObject representing the result of evaluating the code to execute
if the boolean condition is false. |
Object |
ifTrue:(Closure consequent)
Returns an ATObject representing the result of evaluating the code to execute if the boolean condition is true. |
Object |
ifTrue:ifFalse:(Closure consequent,
Closure alternative)
Returns an ATObject representing the result of evaluating either the code to execute
if the boolean condition is false or the one to execute if the boolean condition is true. |
Boolean |
not()
Returns true if the receiver is false or false if the receiver is true. |
Boolean |
or:(Closure other)
Returns true if the receiver is true or the result of the evaluation of the other boolean expression passed as argument if the receiver is false. |
Boolean |
or:or:(Closure b1,
Closure b2)
Auxiliary function:
def boolean.or: b1 or: b2 {
(boolean.or: b1).or: b2
}
|
Methods inherited from interface edu.vub.at.objects.Object |
---|
super |
Method Detail |
---|
Object ifTrue:(Closure consequent)
Usage:
booleanCondition.ifTrue: { code }
consequent
- a closure containing the code to execute if the boolean is true.
edu.vub.at.exceptions.InterpreterException
- if raised in the evaluation of the closure.Object ifFalse:(Closure alternative)
Object
representing the result of evaluating the code to execute
if the boolean condition is false. Returns nil if the boolean expression is true.
Usage:
booleanCondition.ifFalse: { code }
alternative
- a closure containing the code to execute if the boolean is false.
edu.vub.at.exceptions.InterpreterException
- if raised in the evaluation of the closure.Object ifTrue:ifFalse:(Closure consequent, Closure alternative)
Object
representing the result of evaluating either the code to execute
if the boolean condition is false or the one to execute if the boolean condition is true.
Usage:
booleanCondition.ifTrue: { consequent } ifFalse: { alternative }
consequent
- a closure containing the code to execute if the boolean is true.alternative
- a closure containing the code to execute if the boolean is false.
edu.vub.at.exceptions.InterpreterException
- if raised in the evaluation of the consequent or alternative closure.Boolean and:(Closure other)
Usage: boolean.and: { other }
other
- a closure whose evaluation returns a boolean.
edu.vub.at.exceptions.InterpreterException
- if raised in the evaluation of the other boolean.Boolean and:and:(Closure b1, Closure b2)
def boolean.and: b1 and: b2 {
(boolean.and: b1).and: b2
}
Boolean or:(Closure other)
Usage: boolean.or: { other }
other
- a closure whose evaluation returns a boolean.
edu.vub.at.exceptions.InterpreterException
- if raised in the evaluation of the other boolean.Boolean or:or:(Closure b1, Closure b2)
def boolean.or: b1 or: b2 {
(boolean.or: b1).or: b2
}
Boolean not()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |