public static enum ExpressionEvaluator.Evaluator extends Enum<ExpressionEvaluator.Evaluator>
Evaluator
enum represents the Shunting Yard implementation to be used for evaluating expressions.Enum Constant and Description |
---|
DUAL_STACK
Dual Stack implementation of the Shunting Yard algorithm.
|
EXPRESSION_TREE
Expression Tree implementation of the Shunting Yard algorithm.
|
Modifier and Type | Method and Description |
---|---|
static ExpressionEvaluator.Evaluator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExpressionEvaluator.Evaluator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExpressionEvaluator.Evaluator DUAL_STACK
public static final ExpressionEvaluator.Evaluator EXPRESSION_TREE
public static ExpressionEvaluator.Evaluator[] values()
for (ExpressionEvaluator.Evaluator c : ExpressionEvaluator.Evaluator.values()) System.out.println(c);
public static ExpressionEvaluator.Evaluator 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 nullCopyright © 2019 Pratanu Mandal. All rights reserved.