| Enum Constant and Description |
|---|
DIVIDE |
MINUS |
MULTIPLY |
PLUS |
POWER |
REMAINDER |
UNARY_MINUS |
| Modifier and Type | Method and Description |
|---|---|
int |
getArguments() |
FunctionDetails |
getCalc() |
int |
getPrecedence() |
java.lang.String |
getSymbol() |
boolean |
isLeftAssociative() |
static java.lang.String |
symbols() |
static Operator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static java.util.Optional<Operator> |
valueOfSymbol(java.lang.String symbol) |
static Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operator PLUS
public static final Operator MINUS
public static final Operator MULTIPLY
public static final Operator DIVIDE
public static final Operator REMAINDER
public static final Operator UNARY_MINUS
public static final Operator POWER
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static java.util.Optional<Operator> valueOfSymbol(java.lang.String symbol)
public int getArguments()
public FunctionDetails getCalc()
public boolean isLeftAssociative()
public java.lang.String getSymbol()
public int getPrecedence()
public static java.lang.String symbols()