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