Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.netbeans.api.java/1 1.10.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.netbeans.spi.java.queries
Interface SourceLevelQueryImplementation

    public interface SourceLevelQueryImplementation

Permits providers to return specification source level of Java source file.

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.

Since:
  org.netbeans.api.java/1 1.5
See Also:
  `SourceLevelQuery`, `FileOwnerQuery`, `Project`, `ClassPath.BOOT`

Method Summary
`String` | `getSourceLevel(FileObject javaFile)` Returns source level of the given Java file.

Method Detail

### getSourceLevel

    String getSourceLevel(FileObject javaFile)

  Returns source level of the given Java file. For acceptable return values see the documentation of `-source` command line switch of `javac` compiler .

  Parameters:
    `javaFile` - Java source file in question
  Returns:
    source level of the Java file, e.g. "1.3", "1.4" or "1.5", or null if it is not known

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.netbeans.api.java/1 1.10.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.