public static enum Operator.Binary extends Enum<Operator.Binary> implements Operator
Operator.Binary, Operator.Unary| Enum Constant and Description |
|---|
ADD |
AND |
BAND |
BOR |
BXOR |
CONCAT |
DIV |
EQ |
GE |
GT |
IDIV |
LE |
LT |
MOD |
MUL |
NEQ |
OR |
POW |
SHL |
SHR |
SUB |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLeftAssociative() |
int |
precedence() |
Operator.Binary |
swap() |
static Operator.Binary |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operator.Binary[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operator.Binary ADD
public static final Operator.Binary SUB
public static final Operator.Binary MUL
public static final Operator.Binary DIV
public static final Operator.Binary IDIV
public static final Operator.Binary MOD
public static final Operator.Binary POW
public static final Operator.Binary CONCAT
public static final Operator.Binary BAND
public static final Operator.Binary BOR
public static final Operator.Binary BXOR
public static final Operator.Binary SHL
public static final Operator.Binary SHR
public static final Operator.Binary EQ
public static final Operator.Binary NEQ
public static final Operator.Binary LT
public static final Operator.Binary LE
public static final Operator.Binary GT
public static final Operator.Binary GE
public static final Operator.Binary AND
public static final Operator.Binary OR
public static Operator.Binary[] values()
for (Operator.Binary c : Operator.Binary.values()) System.out.println(c);
public static Operator.Binary 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 int precedence()
precedence in interface Operatorpublic boolean isLeftAssociative()
public Operator.Binary swap()
Copyright © 2016–2017. All rights reserved.