Package com.ezylang.evalex.operators
Enum OperatorIfc.OperatorType
- java.lang.Object
-
- java.lang.Enum<OperatorIfc.OperatorType>
-
- com.ezylang.evalex.operators.OperatorIfc.OperatorType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OperatorIfc.OperatorType>
- Enclosing interface:
- OperatorIfc
public static enum OperatorIfc.OperatorType extends java.lang.Enum<OperatorIfc.OperatorType>
The operator type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INFIX_OPERATORBinary infix operator, like x+yPOSTFIX_OPERATORUnary postfix operator,like x!PREFIX_OPERATORUnary prefix operator, like -x
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperatorIfc.OperatorTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OperatorIfc.OperatorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PREFIX_OPERATOR
public static final OperatorIfc.OperatorType PREFIX_OPERATOR
Unary prefix operator, like -x
-
POSTFIX_OPERATOR
public static final OperatorIfc.OperatorType POSTFIX_OPERATOR
Unary postfix operator,like x!
-
INFIX_OPERATOR
public static final OperatorIfc.OperatorType INFIX_OPERATOR
Binary infix operator, like x+y
-
-
Method Detail
-
values
public static OperatorIfc.OperatorType[] 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 (OperatorIfc.OperatorType c : OperatorIfc.OperatorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperatorIfc.OperatorType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-