Class AnnotatedUnaryExpression

  • All Implemented Interfaces:
    AnnotatedExpression

    public final class AnnotatedUnaryExpression
    extends java.lang.Object
    implements AnnotatedExpression
    The AnnotatedUnaryExpression class is used to store information about annotated unary expressions declared during compilation.
    Since:
    1.0
    • Constructor Detail

      • AnnotatedUnaryExpression

        public AnnotatedUnaryExpression​(AnnotatedUnaryOperator operator,
                                        AnnotatedExpression operand)
        Constructs an AnnotatedUnaryExpression object, initialised with the expressions contents.

        The ObjectType is automatically added based on the result type of the operator.

        Parameters:
        operator - The unary operator
        operand - The expression the operator is being applied to