Package compilation.analysis.syntax
Class BinaryExpression
- java.lang.Object
-
- compilation.analysis.syntax.BinaryExpression
-
- All Implemented Interfaces:
Expression
public final class BinaryExpression extends java.lang.Object implements Expression
The BinaryExpression class is used to store information about binary expressions declared during compilation.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description BinaryExpression(Expression leftOperand, Token operatorToken, Expression rightOperand)Constructs a BinaryExpression object, initialised with the expressions contents.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface compilation.analysis.syntax.Expression
getChildren, getExpressionType, getSpan
-
-
-
-
Constructor Detail
-
BinaryExpression
public BinaryExpression(Expression leftOperand, Token operatorToken, Expression rightOperand)
Constructs a BinaryExpression object, initialised with the expressions contents.A SourceSpan containing the range of the expression is automatically generated, as well as a LinkedList of its children.
- Parameters:
leftOperand- The left operand ExpressionoperatorToken- The binary operator TokenrightOperand- The right operand Expression
-
-