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.