class DiscardStatement extends Statement {

    public enum Target {
        ALL,
        PLANS,
        SEQUENCES,
        TEMPORARY
    }

    private final Target target;

    public DiscardStatement(Target target) {
        this.target = target;
    }

    public Target target() {
        return target;
    }

    @Override
    public String toString() {
        return "DISCARD " + target.name().toUpperCase(Locale.ENGLISH);
    }

    @Override
    public int hashCode() {
        return target.hashCode();
    }

    @Override
    public boolean equals(Object obj) {<FILL_FUNCTION_BODY>}

    @Override
    public <R, C> R accept(AstVisitor<R, C> visitor, C context) {
        return visitor.visitDiscard(this, context);
    }
}

        return obj instanceof DiscardStatement && ((DiscardStatement) obj).target == this.target;
    
<methods>public non-sealed void <init>() ,public R accept(AstVisitor<R,C>, C) <variables>