Package iota
Class IComparisonExpression
java.lang.Object
iota.IAST
iota.IStatement
iota.IExpression
iota.IBinaryExpression
iota.IBooleanBinaryExpression
iota.IComparisonExpression
- Direct Known Subclasses:
IGreaterEqualOp
,IGreaterThanOp
,ILessEqualOp
,ILessThanOp
This abstract base class is the AST node for a comparison expression.
-
Field Summary
Fields inherited from class iota.IBinaryExpression
lhs, operator, rhs
Fields inherited from class iota.IExpression
isStatementExpression, type
Fields inherited from class iota.IAST
compilationUnit, line
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
IComparisonExpression
(int line, String operator, IExpression lhs, IExpression rhs) Constructs an AST node for a comparison expression. -
Method Summary
Modifier and TypeMethodDescriptionAnalyzes and returns an IExpression.Methods inherited from class iota.IBooleanBinaryExpression
codegen
Methods inherited from class iota.IBinaryExpression
toJSON
Methods inherited from class iota.IExpression
codegen, type
Methods inherited from class iota.IAST
line, preAnalyze
-
Constructor Details
-
IComparisonExpression
Constructs an AST node for a comparison expression.- Parameters:
line
- line in which the expression occurs in the source file.operator
- the comparison operator.lhs
- the lhs operand.rhs
- the rhs operand.
-
-
Method Details
-
analyze
Analyzes and returns an IExpression.- Specified by:
analyze
in classIExpression
- Parameters:
context
- context in which names are resolved.- Returns:
- the analyzed (and possibly rewritten) AST subtree.
-