Interface CodeNAryOperator
- All Superinterfaces:
CodeItem, CodeOperator
- All Known Subinterfaces:
CodeNAryArbitraryOperator, CodeNAryBooleanOperator, CodeNAryHybridOperator, CodeNAryNumericOperator
CodeOperator that is N-ary. It takes two or more arguments.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Field Summary
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 CodeOperator
getName, isComparison, isUnary
-
Method Details
-
isNAry
default boolean isNAry()- Specified by:
isNAryin interfaceCodeOperator- Returns:
trueif this is aCodeNAryOperatorthat takes two or more arguments to perform a calculation,falseotherwise.
-
isBoolean
boolean isBoolean()- Returns:
trueifCodeNAryBooleanOperator,falseotherwise. Iffalsethe result can never be a boolean value.
-
isNumeric
boolean isNumeric()- Returns:
trueifCodeNAryNumericOperator,falseotherwise. Iffalsethe result can never be a numeric value.
-