public enum OperatorType extends Enum<OperatorType>
| 枚举常量和说明 |
|---|
ADD |
AND |
BIT_AND |
BIT_NOT |
BIT_OR |
BIT_XOR |
DIV |
EQ |
FUNC |
GE |
GT |
INDEX |
LE |
LT |
MATCH |
MOD |
MULT |
NEG |
NEQ |
NOT |
OR |
SHIFT_LEFT |
SHIFT_RIGHT |
SUB |
TERNARY |
U_SHIFT_RIGHT |
| 限定符和类型 | 方法和说明 |
|---|---|
AviatorObject |
eval(AviatorObject[] args) |
int |
getOperandCount() |
String |
getToken() |
static OperatorType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static OperatorType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 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 OperatorType[] values()
for (OperatorType c : OperatorType.values()) System.out.println(c);
public static OperatorType valueOf(String name)
name - 要返回的枚举常量的名称。如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException如果参数为空值, - 则抛出 NullPointerExceptionpublic AviatorObject eval(AviatorObject[] args)
public String getToken()
public int getOperandCount()
Copyright © 2017. All Rights Reserved.