01: /*******************************************************************************
02: * Copyright (c) 2004, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.core.util;
11:
12: /**
13: * Description of an enclosing method attribute as described in the JVM specifications
14: * (added in J2SE 1.5).
15: *
16: * This interface may be implemented by clients.
17: *
18: * @since 3.0
19: */
20: public interface IEnclosingMethodAttribute extends IClassFileAttribute {
21:
22: /**
23: * Answer back the enclosing class name as specified
24: * in the JVM specifications.
25: *
26: * @return the enclosing class name as specified
27: * in the JVM specifications
28: */
29: char[] getEnclosingClass();
30:
31: /**
32: * Answer back the enclosing class name index.
33: *
34: * @return the enclosing class name index
35: */
36: int getEnclosingClassIndex();
37:
38: /**
39: * Answer back the method descriptor of the enclosing method as specified
40: * in the JVM specifications.
41: *
42: * @return the method descriptor of the enclosing method as specified
43: * in the JVM specifications
44: */
45: char[] getMethodDescriptor();
46:
47: /**
48: * Answer back the descriptor index of the enclosing method.
49: *
50: * @return the descriptor index of the enclosing method
51: */
52: int getMethodDescriptorIndex();
53:
54: /**
55: * Answer back the name of the enclosing method as specified
56: * in the JVM specifications.
57: *
58: * @return the name of the enclosing method as specified
59: * in the JVM specifications
60: */
61: char[] getMethodName();
62:
63: /**
64: * Answer back the name index of the enclosing method.
65: *
66: * @return the name index of the enclosing method
67: */
68: int getMethodNameIndex();
69:
70: /**
71: * Answer back the name and type index of this attribute.
72: *
73: * @return the name and type index of this attribute
74: */
75: int getMethodNameAndTypeIndex();
76: }
|