Class ReturnStatement

    • Constructor Detail

      • ReturnStatement

        public ReturnStatement​(Expression value)
    • Method Detail

      • getType

        public int getType()
        Return the type for this statement, this is one of the types defined on the statement object.
        Overrides:
        getType in class AssignmentStatement
        Returns:
        The type of this statement
      • equals

        public boolean equals​(Object obj)
        Description copied from class: AssignmentStatement
        Compare two AssignmentStatements for equality. They will only evaluate to equal if they are IDENTICAL: variable and its value which could be a command or an expression objects are equal.
        Overrides:
        equals in class AssignmentStatement
        Parameters:
        obj - Other object
        Returns:
        True if equal