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/HasNameT.java


1   /*
2    * @(#)HasNameT.java
3    */
4   
5   package javax.ide.model.java.source.tree;
6   
7   /**
8    * Common supertype for elements have have a NameT. <p/>
9    *
10   * @author Andy Yu
11   */
12  public interface HasNameT
13    extends Tree
14  {
15    // ----------------------------------------------------------------------
16  
17    /**
18     * Gets the name symbol.
19     *
20     * @return The NameSymbol associated with this object. Null if none.
21     */
22    public NameT getNameElement();
23  
24    /**
25     * Unlinks the current name and links the input element.
26     *
27     * @throws IllegalStateException if the input element is already linked.
28     */
29    public void setNameElement( NameT name );
30  
31    /**
32     * Gets the name string from the name element. Convenience.
33     *
34     * @return The name string associated with this object. Always
35     * non-null. If no name is found, the empty string is returned.
36     */
37    public String getName();
38  
39    /**
40     * Sets the name string on the name element to be the input
41     * name. Convenience.
42     */
43    public void setName( String name );
44  
45    // ----------------------------------------------------------------------
46  }