Package de.xima.fc.workflow.parser.infix
Enum EOperatorType
- java.lang.Object
-
- java.lang.Enum<EOperatorType>
-
- de.xima.fc.workflow.parser.infix.EOperatorType
-
- All Implemented Interfaces:
Serializable
,Comparable<EOperatorType>
public enum EOperatorType extends Enum<EOperatorType>
Describes the arity of anIOperator
, seeIOperator.getType()
. That is, how many arguments the operator may take.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INFIX
A binary operator that takes two argument.POSTFIX
A unary operator than takes a single argument and is written after the argument to which it applies.PREFIX
A unary operator that takes a single argument and is written before the argument to which it applies.PREFIX_INFIX
PREFIX_POSTFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EOperatorType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EOperatorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFIX
public static final EOperatorType INFIX
A binary operator that takes two argument. A binary operator is written between its two arguments.
-
POSTFIX
public static final EOperatorType POSTFIX
A unary operator than takes a single argument and is written after the argument to which it applies.
-
PREFIX
public static final EOperatorType PREFIX
A unary operator that takes a single argument and is written before the argument to which it applies.
-
PREFIX_INFIX
public static final EOperatorType PREFIX_INFIX
-
PREFIX_POSTFIX
public static final EOperatorType PREFIX_POSTFIX
-
-
Method Detail
-
values
public static EOperatorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EOperatorType c : EOperatorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EOperatorType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-