public enum BitwiseOperator extends Enum<BitwiseOperator> implements Operator
Enum Constant and Description |
---|
And |
Or |
ShiftLeft |
ShiftRight |
UnsignedShiftRight |
Xor |
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 BitwiseOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BitwiseOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BitwiseOperator And
public static final BitwiseOperator Or
public static final BitwiseOperator Xor
public static final BitwiseOperator ShiftRight
public static final BitwiseOperator UnsignedShiftRight
public static final BitwiseOperator ShiftLeft
public static BitwiseOperator[] values()
for (BitwiseOperator c : BitwiseOperator.values()) System.out.println(c);
public static BitwiseOperator 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.