public enum FormulaOperator extends Enum<FormulaOperator>
op: (int->lone Formula) -> Formula
all args: seq Formula, out: Formula | args->out in op => (out.children = args && out.op = this)
Enum Constant and Description |
---|
AND
Logical AND operator.
|
IFF
Logical bi-implication operator.
|
IMPLIES
Logical implication operator.
|
OR
Logical OR operator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
nary()
Returns true if this is an nary operator.
|
static FormulaOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FormulaOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormulaOperator AND
public static final FormulaOperator IFF
public static final FormulaOperator IMPLIES
public static final FormulaOperator OR
public final boolean nary()
public static FormulaOperator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static FormulaOperator[] values()
for (FormulaOperator c : FormulaOperator.values()) System.out.println(c);
© Emina Torlak 2005-present