KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > mirror > declaration > MemberDeclaration


1 /*
2  * @(#)MemberDeclaration.java 1.1 04/01/26
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.mirror.declaration;
9
10
11 /**
12  * Represents a declaration that may be a member or constructor of a declared
13  * type. This includes fields, constructors, methods, and (since they
14  * may be nested) declared types themselves.
15  *
16  * @author Joseph D. Darcy
17  * @author Scott Seligman
18  * @version 1.1 04/01/26
19  * @since 1.5
20  */

21
22 public interface MemberDeclaration extends Declaration {
23
24     /**
25      * Returns the type declaration within which this member or constructor
26      * is declared.
27      * If this is the declaration of a top-level type (a non-nested class
28      * or interface), returns null.
29      *
30      * @return the type declaration within which this member or constructor
31      * is declared, or null if there is none
32      */

33     TypeDeclaration getDeclaringType();
34 }
35
Popular Tags