Package examples.ast
Class BinaryExpression
java.lang.Object
examples.ast.ASTNode
examples.ast.Expression
examples.ast.BinaryExpression
Expressions with two operands and one operator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe first operand of the expression.The second operand of the expression.The operator of the expression.Fields inherited from class examples.ast.Expression
lvalue, type -
Constructor Summary
ConstructorsConstructorDescriptionBinaryExpression(int line, int column, String operator, Expression operand1, Expression operand2) Constructor of a binary expression. -
Method Summary
-
Field Details
-
operator
The operator of the expression. -
operand1
The first operand of the expression. -
operand2
The second operand of the expression.
-
-
Constructor Details
-
BinaryExpression
public BinaryExpression(int line, int column, String operator, Expression operand1, Expression operand2) Constructor of a binary expression.- Parameters:
line- Line of the expression.column- Column of the expression.operator- Operator of the expression.operand1- First operand of the expression.operand2- Second operand of the expression.
-
-
Method Details