Package compilation.analysis.semantic
Class AnnotatedAssignmentOperator
- java.lang.Object
-
- compilation.analysis.semantic.AnnotatedAssignmentOperator
-
- All Implemented Interfaces:
AnnotatedOperator
public final class AnnotatedAssignmentOperator extends java.lang.Object implements AnnotatedOperator
The AnnotatedAssignmentOperator class is used to store information about annotated assignment operators declared during compilation.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description AnnotatedAssignmentOperator(TokenType tokenType, OperatorType operatorType, ObjectType objectType)Constructs an AnnotatedAssignmentOperator object, initialised with the types of the expressions contents.AnnotatedAssignmentOperator(TokenType tokenType, OperatorType operatorType, ObjectType identifierObjectType, ObjectType objectType)Constructs an AnnotatedAssignmentOperator object, initialised with the types of the expressions contents.AnnotatedAssignmentOperator(TokenType tokenType, OperatorType operatorType, ObjectType identifierObjectType, ObjectType assignmentObjectType, ObjectType resultObjectType)Constructs an AnnotatedAssignmentOperator 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
-
AnnotatedAssignmentOperator
public AnnotatedAssignmentOperator(TokenType tokenType, OperatorType operatorType, ObjectType identifierObjectType, ObjectType assignmentObjectType, ObjectType resultObjectType)
Constructs an AnnotatedAssignmentOperator object, initialised with the types of the expressions contents.- Parameters:
tokenType- The operator TokenTypeoperatorType- The operator OperatorTypeidentifierObjectType- The identifier ObjectTypeassignmentObjectType- The assignment ObjectTyperesultObjectType- The result ObjectType
-
AnnotatedAssignmentOperator
public AnnotatedAssignmentOperator(TokenType tokenType, OperatorType operatorType, ObjectType identifierObjectType, ObjectType objectType)
Constructs an AnnotatedAssignmentOperator object, initialised with the types of the expressions contents.The assignmentObjectType and resultObjectType fields are assigned the value of the objectType parameter.
- Parameters:
tokenType- The operator TokenTypeoperatorType- The operator OperatorTypeidentifierObjectType- The identifier ObjectTypeobjectType- The assignment and result ObjectType
-
AnnotatedAssignmentOperator
public AnnotatedAssignmentOperator(TokenType tokenType, OperatorType operatorType, ObjectType objectType)
Constructs an AnnotatedAssignmentOperator object, initialised with the types of the expressions contents.The identifierObjectType, assignmentObjectType, and resultObjectType fields are assigned the value of the objectType parameter.
- Parameters:
tokenType- The operator TokenTypeoperatorType- The operator OperatorTypeobjectType- The identifier, assignment, and result ObjectType
-
-