public enum Source extends Enum<Source>
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Enum Constant and Description |
---|
JDK1_2
1.2 introduced strictfp.
|
JDK1_3
1.3 is the same language as 1.2.
|
JDK1_4
1.4 introduced assert.
|
JDK1_5
1.5 introduced generics, attributes, foreach, boxing, static import,
covariant return, enums, varargs, et al.
|
JDK1_6
1.6 reports encoding problems as errors instead of warnings.
|
JDK1_7
1.7 introduced try-with-resources, multi-catch, string switch, etc.
|
JDK1_8
1.8 covers the to be determined language features that will be added in JDK 8.
|
public static final Source JDK1_2
public static final Source JDK1_3
public static final Source JDK1_4
public static final Source JDK1_5
public static final Source JDK1_6
public static final Source JDK1_7
public static final Source JDK1_8
public static Source[] values()
for (Source c : Source.values()) System.out.println(c);
public static Source valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Target requiredTarget()
public boolean allowEncodingErrors()
public boolean allowAsserts()
public boolean allowCovariantReturns()
public boolean allowGenerics()
public boolean allowDiamond()
public boolean allowMulticatch()
public boolean allowImprovedRethrowAnalysis()
public boolean allowImprovedCatchAnalysis()
public boolean allowEnums()
public boolean allowForeach()
public boolean allowStaticImport()
public boolean allowBoxing()
public boolean allowVarargs()
public boolean allowAnnotations()
public boolean allowHexFloats()
public boolean allowAnonOuterThis()
public boolean addBridges()
public boolean enforceMandatoryWarnings()
public boolean allowTryWithResources()
public boolean allowBinaryLiterals()
public boolean allowUnderscoresInLiterals()
public boolean allowStringsInSwitch()
public boolean allowSimplifiedVarargs()
public boolean allowObjectToPrimitiveCast()
public boolean allowPoly()
public boolean allowLambda()
public boolean allowMethodReferences()
public boolean allowDefaultMethods()
public boolean allowStaticInterfaceMethods()
public boolean allowStrictMethodClashCheck()
public boolean allowEffectivelyFinalInInnerClasses()
public boolean allowTypeAnnotations()
public boolean allowRepeatedAnnotations()
public boolean allowIntersectionTypesInCast()
public boolean allowGraphInference()
public boolean allowStructuralMostSpecific()
public static SourceVersion toSourceVersion(Source source)
Copyright © 2017 earcam. All rights reserved.