Package iota
Class IBinaryExpression
java.lang.Object
iota.IAST
iota.IStatement
iota.IExpression
iota.IBinaryExpression
- Direct Known Subclasses:
IAssignOp
,IBooleanBinaryExpression
,IDivideOp
,IMultiplyOp
,IPlusOp
,IRemainderOp
,ISubtractOp
This abstract base class is the AST node for a binary expression --- an expression with a binary operator and two
operands: lhs and rhs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IExpression
The lhs operand.protected String
The binary operator.protected IExpression
The rhs operand.Fields inherited from class iota.IExpression
isStatementExpression, type
Fields inherited from class iota.IAST
compilationUnit, line
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
IBinaryExpression
(int line, String operator, IExpression lhs, IExpression rhs) Constructs an AST node for a binary expression. -
Method Summary
Modifier and TypeMethodDescriptionvoid
toJSON
(JSONElement json) Stores information about this AST in JSON format.Methods inherited from class iota.IExpression
analyze, codegen, type
Methods inherited from class iota.IAST
codegen, line, preAnalyze
-
Field Details
-
operator
The binary operator. -
lhs
The lhs operand. -
rhs
The rhs operand.
-
-
Constructor Details
-
IBinaryExpression
Constructs an AST node for a binary expression.- Parameters:
line
- line in which the binary expression occurs in the source file.operator
- the binary operator.lhs
- the lhs operand.rhs
- the rhs operand.
-
-
Method Details