KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jode > decompiler > ClassDeclarer


1 /* ClassDeclarer Copyright (C) 1999-2002 Jochen Hoenicke.
2  *
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU Lesser General Public License as published by
5  * the Free Software Foundation; either version 2, or (at your option)
6  * any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * 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: ClassDeclarer.java,v 1.1.4.1 2002/05/28 17:34:03 hoenicke Exp $
18  */

19
20 package jode.decompiler;
21 import jode.bytecode.ClassInfo;
22
23 /**
24  * This is the interface for objects, that a method can declare
25  */

26 public interface ClassDeclarer {
27     /**
28      * Get the parent of this ClassDeclarer.
29      * @return null if this is the outermost instance.
30      */

31     public ClassDeclarer getParent();
32
33     /**
34      * Get the class analyzer for the given anonymous class info. It
35      * will search it in the classes we declare and in the parent
36      * class declarer.
37      * @return null if the class analyzer doesn't yet exists.
38      */

39     public ClassAnalyzer getClassAnalyzer(ClassInfo ci);
40
41     public void addClassAnalyzer(ClassAnalyzer classAna);
42 }
43
Popular Tags