001/* 002// This software is subject to the terms of the Eclipse Public License v1.0 003// Agreement, available at the following URL: 004// http://www.eclipse.org/legal/epl-v10.html. 005// You must accept the terms of that agreement to use this software. 006// 007// Copyright (C) 2006-2006 Pentaho 008// All Rights Reserved. 009*/ 010package mondrian.calc; 011 012import mondrian.mdx.MdxVisitor; 013import mondrian.olap.Exp; 014import mondrian.olap.Validator; 015import mondrian.olap.type.Type; 016 017import java.io.PrintWriter; 018 019/** 020 * Dummy expression which exists only to wrap a 021 * {@link mondrian.olap.type.Type}. 022 * 023 * @author jhyde 024 * @since Sep 26, 2005 025 */ 026public class DummyExp implements Exp { 027 private final Type type; 028 029 public DummyExp(Type type) { 030 this.type = type; 031 } 032 033 public DummyExp clone() { 034 throw new UnsupportedOperationException(); 035 } 036 037 public int getCategory() { 038 throw new UnsupportedOperationException(); 039 } 040 041 public Type getType() { 042 return type; 043 } 044 045 public void unparse(PrintWriter pw) { 046 throw new UnsupportedOperationException(); 047 } 048 049 public Exp accept(Validator validator) { 050 throw new UnsupportedOperationException(); 051 } 052 053 public Calc accept(ExpCompiler compiler) { 054 throw new UnsupportedOperationException(); 055 } 056 057 public Object accept(MdxVisitor visitor) { 058 throw new UnsupportedOperationException(); 059 } 060 061} 062 063// End DummyExp.java