public static class Value.Bool extends Value.Enum
Type.BOOL
.Value.Enum.GP
Value.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple
Modifier and Type | Field and Description |
---|---|
boolean |
b
The
boolean of 'this' Bool Value. |
Constructor and Description |
---|
Bool(int n)
n=0 for false, n=1 for true.
|
Modifier and Type | Method and Description |
---|---|
Value |
bOp(int op,
Value rgt)
Apply a binary operator, 'op', that is 'and', 'or' or
the comparisons, to Bools 'this' and 'rgt'.
|
Type.Enum |
type()
The Type is
Type.BOOL . |
Value |
uOp(int op)
Apply unary operator, op, that is 'not', on 'this' Bool.
|
n, toString
public Type.Enum type()
Type.BOOL
.type
in class Value.Enum
public Value uOp(int op)
public Value bOp(int op, Value rgt)
bOp
in class Value.Discrete