Interface CodeOperator
- All Superinterfaces:
CodeItem
- All Known Subinterfaces:
CodeComparisonOperator, CodeNAryArbitraryOperator, CodeNAryBooleanOperator, CodeNAryHybridOperator, CodeNAryNumericOperator, CodeNAryOperator, CodeUnaryOperator
-
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, write
-
Method Details
-
getName
String getName()- Returns:
- the name of this operator.
-
isUnary
boolean isUnary()- Returns:
trueif this is aCodeUnaryOperatorthat takes exactly one argument,falseotherwise.
-
isComparison
boolean isComparison()- Returns:
trueif this is aCodeComparisonOperatorthat takes exactly two arguments to compare,falseotherwise.
-
isNAry
boolean isNAry()- Returns:
trueif this is aCodeNAryOperatorthat takes two or more arguments to perform a calculation,falseotherwise.
-