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


1   /*
2    * @(#)NameT.java
3    */
4   
5   package javax.ide.model.java.source.tree;
6   
7   /**
8    * A name, simple or qualified. <p/>
9    *
10   * In certain cases, it may contain non-identifier characters. For
11   * example, in an import declaration, the name will include the
12   * trailing ".*". <p/>
13   *
14   * @author Andy Yu
15   * */
16  public interface NameT
17    extends Tree
18  {
19    // ----------------------------------------------------------------------
20  
21    static final NameT[] EMPTY_ARRAY = new NameT[ 0 ];
22  
23  
24    // ----------------------------------------------------------------------
25  
26    /**
27     * Replaces the current text with the input raw text.
28     */
29    public void setText( String text );
30  
31    /**
32     * Gets the String value of this name. The name "getValue" is
33     * inherited from the previous parser version. The "value" is not
34     * always the same as the "text". For example, if the text is an
35     * identifier including unicode characters, the value will have a
36     * translated text whereas the text is the raw text.
37     *
38     * @return The string value associated with this name symbol.
39     */
40    public String getValue();
41  
42    /**
43     * Replaces the current value with the input value.
44     */
45    public void setValue( String value );
46  
47  
48    // ----------------------------------------------------------------------
49  }