01: /* ClassFieldOperator Copyright (C) 1999-2002 Jochen Hoenicke.
02: *
03: * This program is free software; you can redistribute it and/or modify
04: * it under the terms of the GNU Lesser General Public License as published by
05: * the Free Software Foundation; either version 2, or (at your option)
06: * any later version.
07: *
08: * This program is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: * GNU General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public License
14: * along with this program; see the file COPYING.LESSER. If not, write to
15: * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
16: *
17: * $Id: ClassFieldOperator.java,v 1.7.4.1 2002/05/28 17:34:06 hoenicke Exp $
18: */
19:
20: package jode.expr;
21:
22: import jode.type.Type;
23: import jode.decompiler.MethodAnalyzer;
24: import jode.decompiler.TabbedPrintWriter;
25:
26: public class ClassFieldOperator extends NoArgOperator {
27: Type classType;
28:
29: public ClassFieldOperator(Type classType) {
30: super (Type.tJavaLangClass);
31: this .classType = classType;
32: }
33:
34: public int getPriority() {
35: return 950;
36: }
37:
38: public void dumpExpression(TabbedPrintWriter writer)
39: throws java.io.IOException {
40: writer.printType(classType);
41: writer.print(".class");
42: }
43: }
|