org.netbeans.api.java/1 1.10.22

org.netbeans.api.java.queries
Class SourceLevelQuery

java.lang.Object
  extended by org.netbeans.api.java.queries.SourceLevelQuery

public class SourceLevelQuery
extends Object

Returns source level of the given Java source file if it is known.

Since:
org.netbeans.api.java/1 1.5
See Also:
SourceLevelQueryImplementation

Method Summary
static String getSourceLevel(FileObject javaFile)
          Returns source level of the given Java file, Java package or source folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSourceLevel

public static String getSourceLevel(FileObject javaFile)
Returns source level of the given Java file, Java package or source folder. For acceptable return values see the documentation of -source command line switch of javac compiler .

Parameters:
javaFile - Java source file, Java package or source folder 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

org.netbeans.api.java/1 1.10.22

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