KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > alt > jiapi > reflect > LocalVariable


1 /*
2  * Copyright (C) 2001 Mika Riekkinen, Joni Suominen
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19 package alt.jiapi.reflect;
20
21 // import alt.jiapi.file.LocalVariableAttribute;
22

23 /**
24  * This class represents a local variable in a method.
25  *
26  * @author Mika Riekkinen
27  * @author Joni Suominen
28  * @see JiapiMethod
29  * @version $Revision: 1.5 $ $Date: 2004/02/22 16:13:37 $
30  */

31 public class LocalVariable {
32 // LocalVariableAttribute lva;
33

34 // LocalVariable(LocalVariableAttribute lva) {
35
// this.lva = lva;
36
// }
37

38     /**
39      * Get the name of this variable.
40      */

41 // public String getName() {
42
// return lva;
43
// }
44

45     /**
46      * Get the type of this variable.
47      *
48      * @return a JiapiClass which represents a type of this variable
49      * @exception ClassNotFoundException is thrown, if JiapiClass could not
50      * be loaded
51      */

52 // public JiapiClass getType() throws ClassNotFoundException {
53
// // Fix this:
54
// throw new ClassNotFoundException("not implemented yet");
55
// }
56

57     /**
58      * Get the type of this variable.
59      *
60      * @return a String which represents a type of this variable
61      */

62 // public String getTypeName() {
63
// return type;
64
// }
65

66 // public LocalVariable.Visibility getVisibility() {
67
// return visibility;
68
// }
69

70     
71 // public static class Visibility {
72
// /**
73
// * Index within a method where visibility starts.
74
// */
75
// private int start;
76

77 // /**
78
// * Index within a method where visibility ends.
79
// */
80
// private int end;
81
// }
82
}
83
Popular Tags