Package com.github.javaparser.ast.expr
Enum AssignExpr.Operator
- java.lang.Object
-
- java.lang.Enum<AssignExpr.Operator>
-
- com.github.javaparser.ast.expr.AssignExpr.Operator
-
- All Implemented Interfaces:
Stringable
,Serializable
,Comparable<AssignExpr.Operator>
- Enclosing class:
- AssignExpr
public static enum AssignExpr.Operator extends Enum<AssignExpr.Operator> implements Stringable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSIGN
BINARY_AND
BINARY_OR
DIVIDE
LEFT_SHIFT
MINUS
MULTIPLY
PLUS
REMAINDER
SIGNED_RIGHT_SHIFT
UNSIGNED_RIGHT_SHIFT
XOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString()
Optional<BinaryExpr.Operator>
toBinaryOperator()
static AssignExpr.Operator
valueOf(String name)
Returns the enum constant of this type with the specified name.static AssignExpr.Operator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASSIGN
public static final AssignExpr.Operator ASSIGN
-
PLUS
public static final AssignExpr.Operator PLUS
-
MINUS
public static final AssignExpr.Operator MINUS
-
MULTIPLY
public static final AssignExpr.Operator MULTIPLY
-
DIVIDE
public static final AssignExpr.Operator DIVIDE
-
BINARY_AND
public static final AssignExpr.Operator BINARY_AND
-
BINARY_OR
public static final AssignExpr.Operator BINARY_OR
-
XOR
public static final AssignExpr.Operator XOR
-
REMAINDER
public static final AssignExpr.Operator REMAINDER
-
LEFT_SHIFT
public static final AssignExpr.Operator LEFT_SHIFT
-
SIGNED_RIGHT_SHIFT
public static final AssignExpr.Operator SIGNED_RIGHT_SHIFT
-
UNSIGNED_RIGHT_SHIFT
public static final AssignExpr.Operator UNSIGNED_RIGHT_SHIFT
-
-
Method Detail
-
values
public static AssignExpr.Operator[] 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 (AssignExpr.Operator c : AssignExpr.Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AssignExpr.Operator 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
-
asString
public String asString()
- Specified by:
asString
in interfaceStringable
-
toBinaryOperator
public Optional<BinaryExpr.Operator> toBinaryOperator()
-
-