Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: javax/ide/model/java/source/tree/VariableDeclT.java


1   /*
2    * @(#)VariableDeclT.java
3    */
4   
5   package javax.ide.model.java.source.tree;
6   
7   import java.util.List;
8   
9   /**
10   * Common supertype for field declarations and local variable
11   * declarations.
12   *
13   * @author Andy Yu
14   * */
15  public interface VariableDeclT
16    extends Tree
17  {
18    // ----------------------------------------------------------------------
19  
20    /**
21     * Gets the list of declared variables. If this is an enum constant,
22     * there can never be more than one variable.
23     *
24     * @return Array of variables declared in this field.  <p/>
25     *
26     * List of VariableTs.
27     */
28    public List getVariables();
29  
30  
31    // ----------------------------------------------------------------------
32  
33    /**
34     * Gets the type reference for this element.
35     *
36     * @return This element's type reference.
37     */
38    public TypeReferenceT getType();
39  
40    /**
41     * Unlinks the current source type and links the input element.
42     * 
43     * @param type The new type reference.
44     *
45     * @throws IllegalStateException if the input type is already linked.
46     */
47    public void setType( TypeReferenceT type );
48  }