public enum BooleanOperator extends Enum<BooleanOperator> implements Operator
Enum Constant and Description |
---|
And |
Equals |
GreaterThan |
GreaterThanOrEqual |
InstanceOf |
LessThan |
LessThanOrEqual |
NotEquals |
Or |
Modifier and Type | Method and Description |
---|---|
void |
assertCanBeApplied(MetaClass clazz) |
boolean |
canBeApplied(MetaClass clazz) |
String |
getCanonicalString() |
int |
getOperatorPrecedence() |
boolean |
isEqualOrHigherPrecedenceThan(Operator operator) |
boolean |
isHigherPrecedenceThan(Operator operator) |
static BooleanOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BooleanOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BooleanOperator Or
public static final BooleanOperator And
public static final BooleanOperator Equals
public static final BooleanOperator NotEquals
public static final BooleanOperator InstanceOf
public static final BooleanOperator GreaterThanOrEqual
public static final BooleanOperator GreaterThan
public static final BooleanOperator LessThanOrEqual
public static final BooleanOperator LessThan
public static BooleanOperator[] values()
for (BooleanOperator c : BooleanOperator.values()) System.out.println(c);
public static BooleanOperator 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 String getCanonicalString()
getCanonicalString
in interface Operator
public int getOperatorPrecedence()
getOperatorPrecedence
in interface Operator
public boolean isHigherPrecedenceThan(Operator operator)
isHigherPrecedenceThan
in interface Operator
public boolean isEqualOrHigherPrecedenceThan(Operator operator)
isEqualOrHigherPrecedenceThan
in interface Operator
public boolean canBeApplied(MetaClass clazz)
canBeApplied
in interface Operator
public void assertCanBeApplied(MetaClass clazz)
assertCanBeApplied
in interface Operator
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.