Top Description Fields Constructors Methods
com.sun.tools.javac.jvm

public final Enum Target

extends Enum<Target>
Class Inheritance
Imports
java.util.*, com.sun.tools.javac.code.Flags, .Symbol, com.sun.tools.javac.util.*

The classfile version target.

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.

Field Summary

Modifier and TypeField and Description
public static final Target
public static final Target
public static final Target
JDK1_10

JDK 10.

public static final Target
JDK1_11

JDK 11.

public static final Target
JDK1_12

JDK 12.

public static final Target
JDK1_13

JDK 13.

public static final Target
JDK1_14

JDK 14.

public static final Target
JDK1_15

JDK 15.

public static final Target
JDK1_16

JDK 16.

public static final Target
JDK1_17

JDK 17.

public static final Target
JDK1_18

JDK 18.

public static final Target
JDK1_19

JDK 19.

public static final Target
public static final Target
JDK1_20

JDK 20.

public static final Target
JDK1_21

JDK 21.

public static final Target
JDK1_22

JDK 22.

public static final Target
public static final Target
JDK1_4

J2SE1.4 = Merlin.

public static final Target
JDK1_5

JDK 5, codename Tiger.

public static final Target
JDK1_6

JDK 6.

public static final Target
JDK1_7

JDK 7.

public static final Target
JDK1_8

JDK 8.

public static final Target
JDK1_9

JDK 9.

public final int
private static final Target
public static final Target
public final int
public final String
private static final Map<String, Target>
private static final Context.Key<Target>

Constructor Summary

AccessConstructor and Description
private
Target(String name, int majorVersion, int minorVersion)

Method Summary

Modifier and TypeMethod and Description
public boolean
allApiModulesAreRoots()

All modules that export an API are roots when compiling code in the unnamed module and targeting 11 or newer.

public boolean
hasMethodParameters()

Does the target VM expect MethodParameters attributes?

public boolean
hasNestmateAccess()

Does the target VM support nestmate access?

public boolean
hasSealedClasses()

Does the target VM support sealed types

public boolean
hasStringConcatFactory()

Does the target JDK contain StringConcatFactory class?

public boolean
hasVirtualPrivateInvoke()

Does the target VM support virtual private invocations?

public static Target
instance(Context context)

public boolean
public static Target
lookup(String name)

public String
multiReleaseValue()

Value of platform release used to access multi-release jar files

public boolean
obsoleteAccStrict()

Is the ACC_STRICT bit redundant and obsolete

public boolean
optimizeOuterThis()

Omit unused enclosing instance fields from inner classes that don't access enclosing instance state.

public boolean
runtimeUseNestAccess()

language runtime uses nest-based access.

public char
syntheticNameChar()

Return the character to be used in constructing synthetic identifiers, where not specified by the JLS.

public static Target
public static Target[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEFAULTback to summary
public static final Target DEFAULT
JDK1_1back to summary
public static final Target JDK1_1
JDK1_10back to summary
public static final Target JDK1_10

JDK 10.

JDK1_11back to summary
public static final Target JDK1_11

JDK 11.

JDK1_12back to summary
public static final Target JDK1_12

JDK 12.

JDK1_13back to summary
public static final Target JDK1_13

JDK 13.

JDK1_14back to summary
public static final Target JDK1_14

JDK 14.

JDK1_15back to summary
public static final Target JDK1_15

JDK 15.

JDK1_16back to summary
public static final Target JDK1_16

JDK 16.

JDK1_17back to summary
public static final Target JDK1_17

JDK 17.

JDK1_18back to summary
public static final Target JDK1_18

JDK 18.

JDK1_19back to summary
public static final Target JDK1_19

JDK 19.

JDK1_2back to summary
public static final Target JDK1_2
JDK1_20back to summary
public static final Target JDK1_20

JDK 20.

JDK1_21back to summary
public static final Target JDK1_21

JDK 21.

JDK1_22back to summary
public static final Target JDK1_22

JDK 22.

JDK1_3back to summary
public static final Target JDK1_3
JDK1_4back to summary
public static final Target JDK1_4

J2SE1.4 = Merlin.

JDK1_5back to summary
public static final Target JDK1_5

JDK 5, codename Tiger.

JDK1_6back to summary
public static final Target JDK1_6

JDK 6.

JDK1_7back to summary
public static final Target JDK1_7

JDK 7.

JDK1_8back to summary
public static final Target JDK1_8

JDK 8.

JDK1_9back to summary
public static final Target JDK1_9

JDK 9.

majorVersionback to summary
public final int majorVersion
MAXback to summary
private static final Target MAX
MINback to summary
public static final Target MIN
minorVersionback to summary
public final int minorVersion
nameback to summary
public final String name

Hides java.lang.Enum.name.

tabback to summary
private static final Map<String, Target> tab
targetKeyback to summary
private static final Context.Key<Target> targetKey

Constructor Detail

Targetback to summary
private Target(String name, int majorVersion, int minorVersion)

Method Detail

allApiModulesAreRootsback to summary
public boolean allApiModulesAreRoots()

All modules that export an API are roots when compiling code in the unnamed module and targeting 11 or newer.

hasMethodParametersback to summary
public boolean hasMethodParameters()

Does the target VM expect MethodParameters attributes?

hasNestmateAccessback to summary
public boolean hasNestmateAccess()

Does the target VM support nestmate access?

hasSealedClassesback to summary
public boolean hasSealedClasses()

Does the target VM support sealed types

hasStringConcatFactoryback to summary
public boolean hasStringConcatFactory()

Does the target JDK contain StringConcatFactory class?

hasVirtualPrivateInvokeback to summary
public boolean hasVirtualPrivateInvoke()

Does the target VM support virtual private invocations?

instanceback to summary
public static Target instance(Context context)
isSupportedback to summary
public boolean isSupported()
lookupback to summary
public static Target lookup(String name)
multiReleaseValueback to summary
public String multiReleaseValue()

Value of platform release used to access multi-release jar files

obsoleteAccStrictback to summary
public boolean obsoleteAccStrict()

Is the ACC_STRICT bit redundant and obsolete

optimizeOuterThisback to summary
public boolean optimizeOuterThis()

Omit unused enclosing instance fields from inner classes that don't access enclosing instance state.

runtimeUseNestAccessback to summary
public boolean runtimeUseNestAccess()

language runtime uses nest-based access. e.g. lambda and string concat spin dynamic proxy class as a nestmate of the target class

syntheticNameCharback to summary
public char syntheticNameChar()

Return the character to be used in constructing synthetic identifiers, where not specified by the JLS.

valueOfback to summary
public static Target valueOf(String name)
valuesback to summary
public static Target[] values()