Enum AssignmentOperator
- java.lang.Object
-
- java.lang.Enum<AssignmentOperator>
-
- net.sourceforge.pmd.lang.apex.ast.AssignmentOperator
-
- All Implemented Interfaces:
Serializable
,Comparable<AssignmentOperator>
public enum AssignmentOperator extends Enum<AssignmentOperator>
Apex assignment operator
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITION_EQUALS
BITWISE_AND_EQUALS
BITWISE_OR_EQUALS
BITWISE_XOR_EQUALS
DIVISION_EQUALS
EQUALS
LEFT_SHIFT_EQUALS
MULTIPLICATION_EQUALS
RIGHT_SHIFT_SIGNED_EQUALS
RIGHT_SHIFT_UNSIGNED_EQUALS
SUBTRACTION_EQUALS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static AssignmentOperator
valueOf(apex.jorje.data.ast.AssignmentOp op)
Returns aAssignmentOperator
corresponding to the givenAssignmentOp
.static AssignmentOperator
valueOf(String name)
Returns the enum constant of this type with the specified name.static AssignmentOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALS
public static final AssignmentOperator EQUALS
-
ADDITION_EQUALS
public static final AssignmentOperator ADDITION_EQUALS
-
SUBTRACTION_EQUALS
public static final AssignmentOperator SUBTRACTION_EQUALS
-
MULTIPLICATION_EQUALS
public static final AssignmentOperator MULTIPLICATION_EQUALS
-
DIVISION_EQUALS
public static final AssignmentOperator DIVISION_EQUALS
-
LEFT_SHIFT_EQUALS
public static final AssignmentOperator LEFT_SHIFT_EQUALS
-
RIGHT_SHIFT_SIGNED_EQUALS
public static final AssignmentOperator RIGHT_SHIFT_SIGNED_EQUALS
-
RIGHT_SHIFT_UNSIGNED_EQUALS
public static final AssignmentOperator RIGHT_SHIFT_UNSIGNED_EQUALS
-
BITWISE_AND_EQUALS
public static final AssignmentOperator BITWISE_AND_EQUALS
-
BITWISE_OR_EQUALS
public static final AssignmentOperator BITWISE_OR_EQUALS
-
BITWISE_XOR_EQUALS
public static final AssignmentOperator BITWISE_XOR_EQUALS
-
-
Method Detail
-
values
public static AssignmentOperator[] 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 (AssignmentOperator c : AssignmentOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AssignmentOperator 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:
toString
in classEnum<AssignmentOperator>
-
valueOf
public static AssignmentOperator valueOf(apex.jorje.data.ast.AssignmentOp op)
Returns aAssignmentOperator
corresponding to the givenAssignmentOp
.
-
-