Enum Class SourceVersion

java.lang.Object
java.lang.Enum<SourceVersion>
javax.lang.model.SourceVersion
All Implemented Interfaces:
Serializable, Comparable<SourceVersion>, Constable

public enum SourceVersion extends Enum<SourceVersion>
Source versions of the Java programming language. See the appropriate edition of The Java Language Specification for information about a particular source version.

Note that additional source version constants will be added to model future releases of the language.

Since:
1.6
See Also:
  • Nested Class Summary

    Nested classes/interfaces declared in class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The original version.
    The version introduced by the Java Platform 1.1.
    The version introduced by the Java Platform, Standard Edition 10.
    The version introduced by the Java Platform, Standard Edition 11.
    The version introduced by the Java Platform, Standard Edition 12.
    The version introduced by the Java Platform, Standard Edition 13.
    The version introduced by the Java Platform, Standard Edition 14.
    The version introduced by the Java Platform, Standard Edition 15.
    The version introduced by the Java Platform, Standard Edition 16.
    The version introduced by the Java Platform, Standard Edition 17.
    The version introduced by the Java Platform, Standard Edition 18.
    The version introduced by the Java Platform, Standard Edition 19.
    The version introduced by the Java 2 Platform, Standard Edition, v 1.2.
    The version introduced by the Java Platform, Standard Edition 20.
    The version introduced by the Java Platform, Standard Edition 21.
    The version introduced by the Java Platform, Standard Edition 22.
    The version introduced by the Java Platform, Standard Edition 23.
    The version introduced by the Java Platform, Standard Edition 24.
    The version introduced by the Java 2 Platform, Standard Edition, v 1.3.
    The version introduced by the Java 2 Platform, Standard Edition, v 1.4.
    The version introduced by the Java 2 Platform, Standard Edition 5.0.
    The version introduced by the Java Platform, Standard Edition 6.
    The version introduced by the Java Platform, Standard Edition 7.
    The version introduced by the Java Platform, Standard Edition 8.
    The version introduced by the Java Platform, Standard Edition 9.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Returns whether or not name is a syntactically valid identifier (simple name) or keyword in the latest source version.
    static boolean
    Returns whether or not s is a keyword, a boolean literal, or the null literal in the latest source version.
    static boolean
    Returns whether or not s is a keyword, a boolean literal, or the null literal in the given source version.
    static boolean
    Returns whether or not name is a syntactically valid qualified name in the latest source version.
    static boolean
    Returns whether or not name is a syntactically valid qualified name in the given source version.
    Returns the latest source version that can be modeled.
    Returns the latest source version fully supported by the current execution environment.
    Returns the least runtime version that supports this source version; otherwise null.
    Returns the latest source version that is usable under the runtime version argument.
    Returns the enum constant of this class with the specified name.
    static SourceVersion[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods declared in class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait