Package compilation.analysis.semantic
Class AnnotatedBinaryOperator
- java.lang.Object
-
- compilation.analysis.semantic.AnnotatedBinaryOperator
-
- All Implemented Interfaces:
AnnotatedOperator
public final class AnnotatedBinaryOperator extends java.lang.Object implements AnnotatedOperator
The AnnotatedBinaryOperator class is used to store information about annotated binary operators declared during compilation.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description AnnotatedBinaryOperator(TokenType tokenType, OperatorType operatorType, ObjectType objectType)Constructs an AnnotatedBinaryOperator object, initialised with the types of the expressions contents.AnnotatedBinaryOperator(TokenType tokenType, OperatorType operatorType, ObjectType operandObjectType, ObjectType resultObjectType)Constructs an AnnotatedBinaryOperator object, initialised with the types of the expressions contents.AnnotatedBinaryOperator(TokenType tokenType, OperatorType operatorType, ObjectType leftObjectType, ObjectType rightObjectType, ObjectType resultObjectType)Constructs an AnnotatedBinaryOperator object, initialised with the types of 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.semantic.AnnotatedOperator
getOperatorType, getResultObjectType, getTokenType
-
-
-
-
Constructor Detail
-
AnnotatedBinaryOperator
public AnnotatedBinaryOperator(TokenType tokenType, OperatorType operatorType, ObjectType leftObjectType, ObjectType rightObjectType, ObjectType resultObjectType)
Constructs an AnnotatedBinaryOperator object, initialised with the types of the expressions contents.- Parameters:
tokenType- The operator TokenTypeoperatorType- The operator OperatorTypeleftObjectType- The left operand ObjectTyperightObjectType- The right operand ObjectTyperesultObjectType- The result ObjectType
-
AnnotatedBinaryOperator
public AnnotatedBinaryOperator(TokenType tokenType, OperatorType operatorType, ObjectType operandObjectType, ObjectType resultObjectType)
Constructs an AnnotatedBinaryOperator object, initialised with the types of the expressions contents.The leftObjectType and rightObjectType fields are assigned the value of the operandObjectType parameter.
- Parameters:
tokenType- The operator TokenTypeoperatorType- The operator OperatorTypeoperandObjectType- The left and right operand ObjectTyperesultObjectType- The result ObjectType
-
AnnotatedBinaryOperator
public AnnotatedBinaryOperator(TokenType tokenType, OperatorType operatorType, ObjectType objectType)
Constructs an AnnotatedBinaryOperator object, initialised with the types of the expressions contents.The leftObjectType, rightObjectType, and resultObjectType fields are assigned the value of the objectType parameter.
- Parameters:
tokenType- The operator TokenTypeoperatorType- The operator OperatorTypeobjectType- The left operand, right operand, and result ObjectType
-
-