KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > util > IEnclosingMethodAttribute


1 /*******************************************************************************
2  * Copyright (c) 2004, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.core.util;
12
13 /**
14  * Description of an enclosing method attribute as described in the JVM specifications
15  * (added in J2SE 1.5).
16  *
17  * This interface may be implemented by clients.
18  *
19  * @since 3.0
20  */

21 public interface IEnclosingMethodAttribute extends IClassFileAttribute {
22     
23     /**
24      * Answer back the enclosing class name as specified
25      * in the JVM specifications.
26      *
27      * @return the enclosing class name as specified
28      * in the JVM specifications
29      */

30     char[] getEnclosingClass();
31
32     /**
33      * Answer back the enclosing class name index.
34      *
35      * @return the enclosing class name index
36      */

37     int getEnclosingClassIndex();
38
39     /**
40      * Answer back the method descriptor of the enclosing method as specified
41      * in the JVM specifications.
42      *
43      * @return the method descriptor of the enclosing method as specified
44      * in the JVM specifications
45      */

46     char[] getMethodDescriptor();
47
48     /**
49      * Answer back the descriptor index of the enclosing method.
50      *
51      * @return the descriptor index of the enclosing method
52      */

53     int getMethodDescriptorIndex();
54
55     /**
56      * Answer back the name of the enclosing method as specified
57      * in the JVM specifications.
58      *
59      * @return the name of the enclosing method as specified
60      * in the JVM specifications
61      */

62     char[] getMethodName();
63
64     /**
65      * Answer back the name index of the enclosing method.
66      *
67      * @return the name index of the enclosing method
68      */

69     int getMethodNameIndex();
70     
71     /**
72      * Answer back the name and type index of this attribute.
73      *
74      * @return the name and type index of this attribute
75      */

76     int getMethodNameAndTypeIndex();
77 }
78
Popular Tags