Class 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 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 TokenType
        operatorType - The operator OperatorType
        identifierObjectType - The identifier ObjectType
        assignmentObjectType - The assignment ObjectType
        resultObjectType - 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 TokenType
        operatorType - The operator OperatorType
        identifierObjectType - The identifier ObjectType
        objectType - 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 TokenType
        operatorType - The operator OperatorType
        objectType - The identifier, assignment, and result ObjectType