|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Source>
com.sun.tools.javac.code.Source
public enum Source
The source language version accepted.
This is NOT part of any API supported by Sun Microsystems. 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 Summary | |
|---|---|
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 covers the to be determined language features that will be added in JDK 7. |
|
| Field Summary | |
|---|---|
static Source |
DEFAULT
|
java.lang.String |
name
|
private static Context.Key<Source> |
sourceKey
|
private static java.util.Map<java.lang.String,Source> |
tab
|
| Method Summary | |
|---|---|
boolean |
addBridges()
|
boolean |
allowAnnotations()
|
boolean |
allowAnonOuterThis()
|
boolean |
allowAsserts()
|
boolean |
allowBoxing()
|
boolean |
allowCovariantReturns()
|
boolean |
allowEncodingErrors()
Allow encoding errors, giving only warnings. |
boolean |
allowEnums()
|
boolean |
allowForeach()
|
boolean |
allowGenerics()
|
boolean |
allowHexFloats()
|
boolean |
allowStaticImport()
|
boolean |
allowVarargs()
|
boolean |
enforceMandatoryWarnings()
|
static Source |
instance(Context context)
|
static Source |
lookup(java.lang.String name)
|
Target |
requiredTarget()
|
static SourceVersion |
toSourceVersion(Source source)
|
static Source |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Source[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Field Detail |
|---|
private static final Context.Key<Source> sourceKey
public final java.lang.String name
private static java.util.Map<java.lang.String,Source> tab
public static final Source DEFAULT
| Method Detail |
|---|
public static final Source[] values()
for(Source c : Source.values())
System.out.println(c);
public static Source valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic static Source instance(Context context)
public static Source lookup(java.lang.String name)
public Target requiredTarget()
public boolean allowEncodingErrors()
public boolean allowAsserts()
public boolean allowCovariantReturns()
public boolean allowGenerics()
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 static SourceVersion toSourceVersion(Source source)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||