public enum ArithmeticOp extends Enum<ArithmeticOp>
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
static ArithmeticOp |
parse(String op)
解析
|
static ArithmeticOp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArithmeticOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArithmeticOp ADD
public static final ArithmeticOp SUB
public static final ArithmeticOp MUL
public static final ArithmeticOp DIV
public static final ArithmeticOp MOD
public static ArithmeticOp[] values()
for (ArithmeticOp c : ArithmeticOp.values()) System.out.println(c);
public static ArithmeticOp 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 String getCode()
public static ArithmeticOp parse(String op)
Copyright © 2025. All rights reserved.