package org.clafer.ast;

import org.clafer.common.Check;

/**
 *
 * @author jimmy
 */
public class AstRefRelation implements AstSetExpr {

    private final AstRef refRelation;

    public AstRefRelation(AstRef refRelation) {
        this.refRelation = Check.notNull(refRelation);
    }

    public AstRef getRef() {
        return refRelation;
    }

    @Override
    public <A, B> B accept(AstExprVisitor<A, B> visitor, A a) {
        return visitor.visit(this, a);
    }
}

@@ -467,11 +467,122 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        return %22ref(%22 + refRelation.getSourceType() + %22)%22;%0A    %7D
 %0A%7D%0A

Implement AstRefRelation.toString