Serializable, Comparable<OperatorType>public enum OperatorType extends Enum<OperatorType>
| Enum Constant | Description |
|---|---|
ADD |
|
AND |
|
ASSIGNMENT |
|
BIT_AND |
|
BIT_NOT |
|
BIT_OR |
|
BIT_XOR |
|
DEFINE |
|
DIV |
|
EQ |
|
Exponent |
|
FUNC |
|
GE |
|
GT |
|
INDEX |
|
LE |
|
LT |
|
MATCH |
|
MOD |
|
MULT |
|
NEG |
|
NEQ |
|
NOT |
|
OR |
|
SHIFT_LEFT |
|
SHIFT_RIGHT |
|
SUB |
|
TERNARY |
|
U_SHIFT_RIGHT |
| Modifier and Type | Field | Description |
|---|---|---|
int |
operandCount |
|
String |
token |
| Modifier and Type | Method | Description |
|---|---|---|
AviatorObject |
eval(AviatorObject[] args,
Map<String,Object> env) |
|
int |
getOperandCount() |
|
String |
getToken() |
|
static OperatorType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static OperatorType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperatorType BIT_OR
public static final OperatorType BIT_AND
public static final OperatorType BIT_XOR
public static final OperatorType BIT_NOT
public static final OperatorType SHIFT_LEFT
public static final OperatorType SHIFT_RIGHT
public static final OperatorType U_SHIFT_RIGHT
public static final OperatorType NOT
public static final OperatorType MULT
public static final OperatorType Exponent
public static final OperatorType DIV
public static final OperatorType MOD
public static final OperatorType ADD
public static final OperatorType SUB
public static final OperatorType LT
public static final OperatorType LE
public static final OperatorType GT
public static final OperatorType GE
public static final OperatorType EQ
public static final OperatorType NEQ
public static final OperatorType AND
public static final OperatorType MATCH
public static final OperatorType OR
public static final OperatorType INDEX
public static final OperatorType FUNC
public static final OperatorType NEG
public static final OperatorType TERNARY
public static final OperatorType ASSIGNMENT
public static final OperatorType DEFINE
public final String token
public final int operandCount
public static OperatorType[] values()
for (OperatorType c : OperatorType.values()) System.out.println(c);
public static OperatorType 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 AviatorObject eval(AviatorObject[] args, Map<String,Object> env)
public String getToken()
public int getOperandCount()
Copyright © 2022–2023. All rights reserved.