Package com.github.javaparser.ast.expr
Enum BinaryExpr.Operator
- java.lang.Object
-
- java.lang.Enum<BinaryExpr.Operator>
-
- com.github.javaparser.ast.expr.BinaryExpr.Operator
-
- All Implemented Interfaces:
Stringable
,Serializable
,Comparable<BinaryExpr.Operator>
- Enclosing class:
- BinaryExpr
public static enum BinaryExpr.Operator extends Enum<BinaryExpr.Operator> implements Stringable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AND
BINARY_AND
BINARY_OR
DIVIDE
EQUALS
GREATER
GREATER_EQUALS
LEFT_SHIFT
LESS
LESS_EQUALS
MINUS
MULTIPLY
NOT_EQUALS
OR
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<AssignExpr.Operator>
toAssignOperator()
static BinaryExpr.Operator
valueOf(String name)
Returns the enum constant of this type with the specified name.static BinaryExpr.Operator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OR
public static final BinaryExpr.Operator OR
-
AND
public static final BinaryExpr.Operator AND
-
BINARY_OR
public static final BinaryExpr.Operator BINARY_OR
-
BINARY_AND
public static final BinaryExpr.Operator BINARY_AND
-
XOR
public static final BinaryExpr.Operator XOR
-
EQUALS
public static final BinaryExpr.Operator EQUALS
-
NOT_EQUALS
public static final BinaryExpr.Operator NOT_EQUALS
-
LESS
public static final BinaryExpr.Operator LESS
-
GREATER
public static final BinaryExpr.Operator GREATER
-
LESS_EQUALS
public static final BinaryExpr.Operator LESS_EQUALS
-
GREATER_EQUALS
public static final BinaryExpr.Operator GREATER_EQUALS
-
LEFT_SHIFT
public static final BinaryExpr.Operator LEFT_SHIFT
-
SIGNED_RIGHT_SHIFT
public static final BinaryExpr.Operator SIGNED_RIGHT_SHIFT
-
UNSIGNED_RIGHT_SHIFT
public static final BinaryExpr.Operator UNSIGNED_RIGHT_SHIFT
-
PLUS
public static final BinaryExpr.Operator PLUS
-
MINUS
public static final BinaryExpr.Operator MINUS
-
MULTIPLY
public static final BinaryExpr.Operator MULTIPLY
-
DIVIDE
public static final BinaryExpr.Operator DIVIDE
-
REMAINDER
public static final BinaryExpr.Operator REMAINDER
-
-
Method Detail
-
values
public static BinaryExpr.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 (BinaryExpr.Operator c : BinaryExpr.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 BinaryExpr.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
-
toAssignOperator
public Optional<AssignExpr.Operator> toAssignOperator()
-
-