Interface CodeComparisonOperatorExpression
- All Superinterfaces:
CodeCondition, CodeExpression, CodeItem, CodeOperatorExpression
CodeOperatorExpression for a CodeComparisonOperator expression. Syntax:
«Example:left-arg» «operator» «right-arg»
5 > 3
- 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 CodeExpression
evaluateMethods inherited from interface CodeItem
getLanguage, getSourceCode, write, write, write, write, write, write
-
Method Details
-
getLeftArg
CodeExpression getLeftArg()- Returns:
- the left hand side argument to compare.
-
getOperator
CodeComparisonOperator getOperator()- Specified by:
getOperatorin interfaceCodeOperatorExpression- Returns:
- the
CodeOperatorapplied to theargumentsto calculate the result of the expression.
-
getRightArg
CodeExpression getRightArg()- Returns:
- the right hand side argument to compare.
-
getArguments
- Specified by:
getArgumentsin interfaceCodeOperatorExpression- Returns:
- the
unmodifyableListof arguments. Thesizeas to be at least 2.
-