站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.0.0

ClassElement.Finder (NetBeans Java Hierarchy API) - NetBeans API Javadoc 5.0.0

 

org.openide.src
Interface ClassElement.Finder

Enclosing interface:
ClassElement

public static interface ClassElement.Finder

Provides a "finder" for class elements. A module can provide its own finder to enhance the ability of the IDE to locate a valid class element description for different classes.

See Also:
ClassElement.forName(java.lang.String, org.openide.filesystems.FileObject), ClassElement.register(org.openide.src.ClassElement.Finder), ClassElement.unregister(org.openide.src.ClassElement.Finder)

Method Summary
 ClassElement find(Class clazz, FileObject reference)
          Find a class element description for a class.
 ClassElement find(String name, FileObject reference)
          Find a class element description for a class name.
 

Method Detail

find

public ClassElement find(Class clazz,
                         FileObject reference)
Find a class element description for a class.

Parameters:
clazz - the class to find
reference - file object presumed to be in the same classpath structure
Returns:
the class element, or null if not found

find

public ClassElement find(String name,
                         FileObject reference)
Find a class element description for a class name.

Parameters:
name - the name of a class to find
reference - file object presumed to be in the same classpath structure
Returns:
the class element, or null if not found

 

Built on May 3 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.