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/util/TreeLocator.java


1   /*
2    * @(#)TreeLocator.java
3    */
4   
5   package javax.ide.model.java.source.util;
6   
7   import javax.ide.model.java.declaration.Declaration;
8   import javax.ide.model.java.source.tree.Tree;
9   
10  /**
11   * The TreeLocator interface provides a facility for the caller to map
12   * a Declaration object to its declaring Tree object, if any. <p/>
13   *
14   * @author Andy Yu
15   */
16  public interface TreeLocator
17  {
18    // ----------------------------------------------------------------------
19  
20    /**
21     * Gets the Tree object that declares the given declaration, null if
22     * none.
23     *
24     * @return Gets the Tree object that declares the given declaration,
25     * null if no matching Tree of the right kind is found.
26     */
27    public Tree getTree(Declaration d);
28  }