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 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) intgetArity()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 AbstractOperator
findForClass, getExpressionItemType, toString
-
Constructor Details
-
OperatorSUB
public OperatorSUB()
-
-
Method Details
-
getArity
public int getArity()Description copied from class:AbstractOperatorGet the operator arity- Specified by:
getArityin classAbstractOperator- Returns:
- the operator arity (1 or 2)
-
getReference
Description copied from class:AbstractOperatorGet the operator reference to be shown for a help information request- Specified by:
getReferencein classAbstractOperator- Returns:
- the operator reference as a String, must not be null
-
getKeyword
Description copied from class:AbstractOperatorGet the operator keyword- Specified by:
getKeywordin classAbstractOperator- Returns:
- the operator keyword, must not be null
-
executeIntInt
-
executeIntFloat
-
executeFloatInt
-
executeFloatFloat
-
getExpressionItemPriority
Description copied from interface:ExpressionItemGet the priority of the item- Returns:
- the item priority, must not be null
-