org.netbeans.spi.java.queries
public interface SourceLevelQueryImplementation2
A default implementation is registered by the
org.netbeans.modules.java.project
module which looks up the
project corresponding to the file (if any) and checks whether that
project has an implementation of this interface in its lookup. If so, it
delegates to that implementation. Therefore it is not generally necessary
for a project type provider to register its own global implementation of
this query, if it depends on the Java Project module and uses this style.
SourceLevelQuery
,
FileOwnerQuery
,
org.netbeans.api.project.Project#getLookup
,
ClassPath.BOOT
Modifier and Type | Interface and Description |
---|---|
static interface |
SourceLevelQueryImplementation2.Result
Result of finding source level, encapsulating the answer as well as the
ability to listen to it.
|
Modifier and Type | Method and Description |
---|---|
SourceLevelQueryImplementation2.Result |
getSourceLevel(FileObject javaFile)
Returns source level of the given Java file.
|
SourceLevelQueryImplementation2.Result getSourceLevel(FileObject javaFile)
-source
command line switch of
javac
compiler .javaFile
- Java source file in questionSourceLevelQueryImplementation2.Result
, or
null if the file is not handled by this provider.Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.