Class AssignmentExpression

  • All Implemented Interfaces:
    Expression

    public final class AssignmentExpression
    extends java.lang.Object
    implements Expression
    The AssignmentExpression class is used to store information about assignment expressions declared during compilation.
    Since:
    1.0
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AssignmentExpression

        public AssignmentExpression​(IdentifierExpression identifierExpression,
                                    Token assignmentToken,
                                    Expression expression)
        Constructs an AssignmentExpression object, initialised with the expressions contents.

        A SourceSpan containing the range of the expression is automatically generated, as well as a LinkedList of its children.

        Parameters:
        identifierExpression - The IdentifierExpression being assigned to
        assignmentToken - The assignment operator Token
        expression - The Expression which is being assigned