Class OperatorSUB
java.lang.Object
com.igormaznitsa.jcp.expression.operators.AbstractOperator
com.igormaznitsa.jcp.expression.operators.OperatorSUB
- All Implemented Interfaces:
ExpressionItem
The class implements the SUB operator handler
-
Field Summary
Fields inherited from class com.igormaznitsa.jcp.expression.operators.AbstractOperator
ALL_OPERATORS, EXECUTION_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteFloatFloat
(Value arg1, Value arg2) executeFloatInt
(Value arg1, Value arg2) executeIntFloat
(Value arg1, Value arg2) executeIntInt
(Value arg1, Value arg2) int
getArity()
Get the operator arityGet the priority of the itemGet the operator keywordGet the operator reference to be shown for a help information requestMethods inherited from class com.igormaznitsa.jcp.expression.operators.AbstractOperator
findForClass, getExpressionItemType, toString
-
Constructor Details
-
OperatorSUB
public OperatorSUB()
-
-
Method Details
-
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
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
Description copied from class:AbstractOperator
Get the operator keyword- Specified by:
getKeyword
in classAbstractOperator
- Returns:
- the operator keyword, must not be null
-
executeIntInt
-
executeIntFloat
-
executeFloatInt
-
executeFloatFloat
-
getExpressionItemPriority
Description copied from interface:ExpressionItem
Get the priority of the item- Returns:
- the item priority, must not be null
-