KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > calc > DummyExp


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/calc/DummyExp.java#5 $
3 // This software is subject to the terms of the Common Public License
4 // Agreement, available at the following URL:
5 // http://www.opensource.org/licenses/cpl.html.
6 // Copyright (C) 2006-2006 Julian Hyde
7 // All Rights Reserved.
8 // You must accept the terms of that agreement to use this software.
9 */

10 package mondrian.calc;
11
12 import mondrian.olap.*;
13 import mondrian.olap.type.Type;
14 import mondrian.mdx.MdxVisitor;
15
16 import java.io.PrintWriter JavaDoc;
17
18 /**
19  * Dummy expression which exists only to wrap a
20  * {@link mondrian.olap.type.Type}.
21  *
22  * @author jhyde
23  * @version $Id: //open/mondrian/src/main/mondrian/calc/DummyExp.java#5 $
24  * @since Sep 26, 2005
25  */

26 public class DummyExp implements Exp {
27     private final Type type;
28
29     public DummyExp(Type type) {
30         this.type = type;
31     }
32
33     public DummyExp clone() {
34         throw new UnsupportedOperationException JavaDoc();
35     }
36
37     public int getCategory() {
38         throw new UnsupportedOperationException JavaDoc();
39     }
40
41     public Type getType() {
42         return type;
43     }
44
45     public void unparse(PrintWriter JavaDoc pw) {
46         throw new UnsupportedOperationException JavaDoc();
47     }
48
49     public Exp accept(Validator validator) {
50         throw new UnsupportedOperationException JavaDoc();
51     }
52
53     public Calc accept(ExpCompiler compiler) {
54         throw new UnsupportedOperationException JavaDoc();
55     }
56
57     public Object JavaDoc accept(MdxVisitor visitor) {
58         throw new UnsupportedOperationException JavaDoc();
59     }
60
61 }
62
63 // End DummyExp.java
64
Popular Tags