public static enum Operation.OpType extends Enum<Operation.OpType>
Enum Constant and Description |
---|
CONCAT
This operation represents a string concatenation as in
'Hello' || 'World'.
|
DIVIDE
This operation represents a division as in 4 * 2.
|
MINUS
This operation represents a subtraction as in 2 - 1.
|
MODULUS
This operation represents a modulus as in 5 % 2.
|
MULTIPLY
This operation represents a multiplication as in 2 * 3.
|
NEGATE
This operation represents a negation as in - ID.
|
PLUS
This operation represents an addition as in 1 + 2.
|
Modifier and Type | Method and Description |
---|---|
static Operation.OpType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operation.OpType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operation.OpType CONCAT
public static final Operation.OpType PLUS
public static final Operation.OpType MINUS
public static final Operation.OpType MULTIPLY
public static final Operation.OpType DIVIDE
public static final Operation.OpType NEGATE
public static final Operation.OpType MODULUS
public static Operation.OpType[] values()
for (Operation.OpType c : Operation.OpType.values()) System.out.println(c);
public static Operation.OpType 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 © 2020 JBoss by Red Hat. All rights reserved.