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

FileBuiltQueryImplementation (NetBeans General Queries API) - NetBeans API Javadoc 5.5.0

org.netbeans.modules.queries/1 1.7.22

org.netbeans.spi.queries
Interface FileBuiltQueryImplementation


public interface FileBuiltQueryImplementation

Test whether a file can be considered to be built (up to date). Register to default lookup.

Rather than registering a global instance, if your implementation is applicable only to project-owned files, you should add it to Project.getLookup() and depend on the org.netbeans.modules.projectapi module.

See Also:
FileBuiltQuery, AntProjectHelper.createGlobFileBuiltQuery(...)

Method Summary
 FileBuiltQuery.Status getStatus(FileObject file)
          Check whether a (source) file has been somehow built or processed.
 

Method Detail

getStatus

FileBuiltQuery.Status getStatus(FileObject file)
Check whether a (source) file has been somehow built or processed. This would typically mean that at least its syntax has been validated by a build system, some conventional output file exists and is at least as new as the source file, etc. For example, for a Foo.java source file, this could check whether Foo.class exists (in the appropriate build directory) with at least as new a timestamp.

Parameters:
file - a source file which can be built to a direct product
Returns:
a status object that can be queries and listened to, or null for no answer

org.netbeans.modules.queries/1 1.7.22

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