Enum BinaryOperator
- java.lang.Object
-
- java.lang.Enum<BinaryOperator>
-
- net.sourceforge.pmd.lang.apex.ast.BinaryOperator
-
- All Implemented Interfaces:
Serializable,Comparable<BinaryOperator>
public enum BinaryOperator extends Enum<BinaryOperator>
Apex binary operator
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITIONBITWISE_ANDBITWISE_ORBITWISE_XORDIVISIONLEFT_SHIFTMULTIPLICATIONRIGHT_SHIFT_SIGNEDRIGHT_SHIFT_UNSIGNEDSUBTRACTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static BinaryOperatorvalueOf(apex.jorje.data.ast.BinaryOp op)Returns aBinaryOperatorcorresponding to the givenBinaryOp.static BinaryOperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static BinaryOperator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADDITION
public static final BinaryOperator ADDITION
-
SUBTRACTION
public static final BinaryOperator SUBTRACTION
-
MULTIPLICATION
public static final BinaryOperator MULTIPLICATION
-
DIVISION
public static final BinaryOperator DIVISION
-
LEFT_SHIFT
public static final BinaryOperator LEFT_SHIFT
-
RIGHT_SHIFT_SIGNED
public static final BinaryOperator RIGHT_SHIFT_SIGNED
-
RIGHT_SHIFT_UNSIGNED
public static final BinaryOperator RIGHT_SHIFT_UNSIGNED
-
BITWISE_AND
public static final BinaryOperator BITWISE_AND
-
BITWISE_OR
public static final BinaryOperator BITWISE_OR
-
BITWISE_XOR
public static final BinaryOperator BITWISE_XOR
-
-
Method Detail
-
values
public static BinaryOperator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BinaryOperator c : BinaryOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinaryOperator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<BinaryOperator>
-
valueOf
public static BinaryOperator valueOf(apex.jorje.data.ast.BinaryOp op)
Returns aBinaryOperatorcorresponding to the givenBinaryOp.
-
-