Class OperatorMOD
- java.lang.Object
-
- com.igormaznitsa.jcp.expression.operators.AbstractOperator
-
- com.igormaznitsa.jcp.expression.operators.OperatorMOD
-
- All Implemented Interfaces:
ExpressionItem
public final class OperatorMOD extends AbstractOperator
The class implements the MOD operator handler
-
-
Field Summary
-
Fields inherited from class com.igormaznitsa.jcp.expression.operators.AbstractOperator
ALL_OPERATORS, EXECUTION_PREFIX
-
-
Constructor Summary
Constructors Constructor Description OperatorMOD()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Value
executeFloatFloat(Value arg1, Value arg2)
Value
executeFloatInt(Value arg1, Value arg2)
Value
executeIntFloat(Value arg1, Value arg2)
Value
executeIntInt(Value arg1, Value arg2)
int
getArity()
Get the operator arityExpressionItemPriority
getExpressionItemPriority()
Get the priority of the itemjava.lang.String
getKeyword()
Get the operator keywordjava.lang.String
getReference()
Get the operator reference to be shown for a help information request-
Methods inherited from class com.igormaznitsa.jcp.expression.operators.AbstractOperator
findForClass, getExpressionItemType, toString
-
-
-
-
Method Detail
-
getArity
public int getArity()
Description copied from class:AbstractOperator
Get the operator arity- Specified by:
getArity
in classAbstractOperator
- Returns:
- the operator arity (1 or 2)
-
getReference
public java.lang.String getReference()
Description copied from class:AbstractOperator
Get the operator reference to be shown for a help information request- Specified by:
getReference
in classAbstractOperator
- Returns:
- the operator reference as a String, must not be null
-
getKeyword
public java.lang.String getKeyword()
Description copied from class:AbstractOperator
Get the operator keyword- Specified by:
getKeyword
in classAbstractOperator
- Returns:
- the operator keyword, must not be null
-
getExpressionItemPriority
public ExpressionItemPriority getExpressionItemPriority()
Description copied from interface:ExpressionItem
Get the priority of the item- Returns:
- the item priority, must not be null
-
-