public enum BooleanOperation extends Enum<BooleanOperation> implements Operation
Enum Constant and Description |
---|
AND
Boolean and.
|
NOT
Boolean negation.
|
OR
Boolean or.
|
XOR
Boolean xor.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
execute(Namespace namespace,
String oper,
Boolean arg) |
Boolean |
execute(Namespace namespace,
String oper,
Boolean left,
Boolean right) |
static BooleanOperation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BooleanOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BooleanOperation NOT
public static final BooleanOperation AND
public static final BooleanOperation OR
public static final BooleanOperation XOR
public static BooleanOperation[] values()
for (BooleanOperation c : BooleanOperation.values()) System.out.println(c);
public static BooleanOperation 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 Boolean execute(Namespace namespace, String oper, Boolean arg) throws ErrorException
ErrorException
public Boolean execute(Namespace namespace, String oper, Boolean left, Boolean right) throws ErrorException
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.