/*
* This software is subject to the terms of the Eclipse Public License v1.0
* Agreement, available at the following URL:
* http://www.eclipse.org/legal/epl-v10.html.
* You must accept the terms of that agreement to use this software.
*
* Copyright (c) 2002-2013 Pentaho Corporation.. All rights reserved.
*/
package mondrian.calc;
import mondrian.mdx.MdxVisitor;
import mondrian.olap.Exp;
import mondrian.olap.Validator;
import mondrian.olap.type.Type;
import java.io.PrintWriter;
/**
* Dummy expression which exists only to wrap a
* {@link mondrian.olap.type.Type}.
*
* @author jhyde
* @since Sep 26, 2005
*/
public class DummyExp implements Exp {
private final Type type;
public DummyExp(Type type) {
this.type = type;
}
public DummyExp clone() {
throw new UnsupportedOperationException();
}
public int getCategory() {
throw new UnsupportedOperationException();
}
public Type getType() {
return type;
}
public void unparse(PrintWriter pw) {
throw new UnsupportedOperationException();
}
public Exp accept(Validator validator) {
throw new UnsupportedOperationException();
}
public Calc accept(ExpCompiler compiler) {
throw new UnsupportedOperationException();
}
public Object accept(MdxVisitor visitor) {
throw new UnsupportedOperationException();
}
}
// End DummyExp.java