Package com.sap.cds.ql.cqn
Enum CqnArithmeticExpression.Operator
- java.lang.Object
-
- java.lang.Enum<CqnArithmeticExpression.Operator>
-
- com.sap.cds.ql.cqn.CqnArithmeticExpression.Operator
-
- All Implemented Interfaces:
Serializable
,Comparable<CqnArithmeticExpression.Operator>
- Enclosing interface:
- CqnArithmeticExpression
public static enum CqnArithmeticExpression.Operator extends Enum<CqnArithmeticExpression.Operator>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
symbol()
static CqnArithmeticExpression.Operator
valueOf(String name)
Returns the enum constant of this type with the specified name.static CqnArithmeticExpression.Operator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final CqnArithmeticExpression.Operator ADD
Addition operator
-
SUB
public static final CqnArithmeticExpression.Operator SUB
Subtraction operator
-
MUL
public static final CqnArithmeticExpression.Operator MUL
Multiplication operator
-
DIV
public static final CqnArithmeticExpression.Operator DIV
Division operator
-
-
Method Detail
-
values
public static CqnArithmeticExpression.Operator[] 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 (CqnArithmeticExpression.Operator c : CqnArithmeticExpression.Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CqnArithmeticExpression.Operator 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
-
symbol
public String symbol()
-
-