Source code: javax/ide/model/java/source/tree/LocalVariableT.java
1 /*
2 * @(#)LocalVariableT.java
3 */
4
5 package javax.ide.model.java.source.tree;
6
7 /**
8 * A local variable, not a parameter. <p/>
9 *
10 * @author Andy Yu
11 * */
12 public interface LocalVariableT
13 extends VariableT
14 {
15 // ----------------------------------------------------------------------
16
17 static final LocalVariableT[] EMPTY_ARRAY =
18 new LocalVariableT[ 0 ];
19
20
21 // ----------------------------------------------------------------------
22
23 /**
24 * Gets the owning block.
25 *
26 * @return The code block that this variable is declared to be used in.
27 *
28 * Local variables return the owning block.
29 *
30 * Formal parameters return the owning method's block. Null if the method
31 * is abstract.
32 *
33 * Exception parameters return the owning catch clause's block.
34 */
35 public BlockT getOwningBlock();
36
37
38 // ----------------------------------------------------------------------
39 }