|
org.netbeans.api.java/1 1.33.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.java.queries.SourceLevelQuery
public class SourceLevelQuery
Returns source level of the given Java source file if it is known.
SourceLevelQueryImplementation2
Nested Class Summary | |
---|---|
static class |
SourceLevelQuery.Result
Result of finding source level, encapsulating the answer as well as the ability to listen to it. |
Method Summary | |
---|---|
static String |
getSourceLevel(FileObject javaFile)
Returns source level of the given Java file, Java package or source folder. |
static SourceLevelQuery.Result |
getSourceLevel2(FileObject javaFile)
Returns a 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 |
---|
public static String getSourceLevel(FileObject javaFile)
-source
command line switch of
javac
compiler .
javaFile
- Java source file, Java package or source folder in question
@NonNull public static SourceLevelQuery.Result getSourceLevel2(@NonNull FileObject javaFile)
-source
command line switch of
javac
compiler .
javaFile
- Java source file, Java package or source folder in question
SourceLevelQuery.Result
object encapsulating the source level of the Java file. Results created for source
levels provided by the SourceLevelQueryImplementation
do not support listening. Use SourceLevelQuery.Result.supportsChanges()
to check if the result supports listening.
|
org.netbeans.api.java/1 1.33.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |