Interface CodeNAryNumericOperator
- All Superinterfaces:
CodeItem, CodeNAryOperator, CodeOperator
- All Known Subinterfaces:
CodeNAryArbitraryOperator, CodeNAryHybridOperator
CodeNAryOperator that takes numeric arguments and in such case has a numeric result. Except for instances of CodeNAryArbitraryOperator other types of arguments and
result are not supported.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringNameof division operator.static final StringNameof modulo operator.static final StringNameof multiplication operator.static final StringNameof bitwise signed shift left operator.static final StringNameof bitwise signed shift right operator.static final StringNameof bitwise unsigned shift right operator.static final StringNameof subtraction (minus) operator.Fields inherited from interface CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINE -
Method Summary
Methods inherited from interface CodeItem
getLanguage, getSourceCode, write, write, write, write, write, writeMethods inherited from interface CodeNAryOperator
isBoolean, isNAryMethods inherited from interface CodeOperator
getName, isComparison, isUnary
-
Field Details
-
NAME_SUB
-
NAME_MUL
-
NAME_DIV
-
NAME_MOD
-
NAME_SHIFT_RIGHT_SIGNED
-
NAME_SHIFT_RIGHT_UNSIGNED
-
NAME_SHIFT_LEFT
-
-
Method Details
-
isNumeric
default boolean isNumeric()- Specified by:
isNumericin interfaceCodeNAryOperator- Returns:
trueifCodeNAryNumericOperator,falseotherwise. Iffalsethe result can never be a numeric value.
-