Interface ClassFileConstants
- All Known Implementing Classes:
ConstantPool
public interface ClassFileConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
Flags in module declaration - since java9static int
static int
static int
static int
static int
static int
Extra flags for types and members attributes (not from the JVMS, should have been defined in ExtraCompilerModifiers).static int
static int
static int
static int
static int
static int
static int
From classfile version 52 (compliance 1.8 up), meaning that a formal parameter is mandated by a language specification, so all compilers for the language must emit it.static int
static int
static int
static int
static int
static int
static int
static int
Other VM flags.static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static long
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static long
static long
static long
static long
static long
static long
static long
static long
static long
static long
static long
static long
static long
static long
static long
static long
static long
static long
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic long
getComplianceLevelForJavaVersion(int major)
As we move away from declaring every compliance level explicitly (such as JDK11, JDK12 etc.), this method can be used to compute the compliance level on the fly for a given Java major version.static long
-
Field Details
-
AccDefault
static final int AccDefault- See Also:
- Constant Field Values
-
AccPublic
static final int AccPublic- See Also:
- Constant Field Values
-
AccPrivate
static final int AccPrivate- See Also:
- Constant Field Values
-
AccProtected
static final int AccProtected- See Also:
- Constant Field Values
-
AccStatic
static final int AccStatic- See Also:
- Constant Field Values
-
AccFinal
static final int AccFinal- See Also:
- Constant Field Values
-
AccSynchronized
static final int AccSynchronized- See Also:
- Constant Field Values
-
AccVolatile
static final int AccVolatile- See Also:
- Constant Field Values
-
AccBridge
static final int AccBridge- See Also:
- Constant Field Values
-
AccTransient
static final int AccTransient- See Also:
- Constant Field Values
-
AccVarargs
static final int AccVarargs- See Also:
- Constant Field Values
-
AccNative
static final int AccNative- See Also:
- Constant Field Values
-
AccInterface
static final int AccInterface- See Also:
- Constant Field Values
-
AccAbstract
static final int AccAbstract- See Also:
- Constant Field Values
-
AccStrictfp
static final int AccStrictfp- See Also:
- Constant Field Values
-
AccSynthetic
static final int AccSynthetic- See Also:
- Constant Field Values
-
AccAnnotation
static final int AccAnnotation- See Also:
- Constant Field Values
-
AccEnum
static final int AccEnum- See Also:
- Constant Field Values
-
AccModule
static final int AccModule- See Also:
- Constant Field Values
-
AccMandated
static final int AccMandatedFrom classfile version 52 (compliance 1.8 up), meaning that a formal parameter is mandated by a language specification, so all compilers for the language must emit it.- See Also:
- Constant Field Values
-
ACC_OPEN
static final int ACC_OPENFlags in module declaration - since java9- See Also:
- Constant Field Values
-
ACC_TRANSITIVE
static final int ACC_TRANSITIVE- See Also:
- Constant Field Values
-
ACC_STATIC_PHASE
static final int ACC_STATIC_PHASE- See Also:
- Constant Field Values
-
ACC_SYNTHETIC
static final int ACC_SYNTHETIC- See Also:
- Constant Field Values
-
AccSuper
static final int AccSuperOther VM flags.- See Also:
- Constant Field Values
-
AccAnnotationDefault
static final int AccAnnotationDefaultExtra flags for types and members attributes (not from the JVMS, should have been defined in ExtraCompilerModifiers).- See Also:
- Constant Field Values
-
AccDeprecated
static final int AccDeprecated- See Also:
- Constant Field Values
-
Utf8Tag
static final int Utf8Tag- See Also:
- Constant Field Values
-
IntegerTag
static final int IntegerTag- See Also:
- Constant Field Values
-
FloatTag
static final int FloatTag- See Also:
- Constant Field Values
-
LongTag
static final int LongTag- See Also:
- Constant Field Values
-
DoubleTag
static final int DoubleTag- See Also:
- Constant Field Values
-
ClassTag
static final int ClassTag- See Also:
- Constant Field Values
-
StringTag
static final int StringTag- See Also:
- Constant Field Values
-
FieldRefTag
static final int FieldRefTag- See Also:
- Constant Field Values
-
MethodRefTag
static final int MethodRefTag- See Also:
- Constant Field Values
-
InterfaceMethodRefTag
static final int InterfaceMethodRefTag- See Also:
- Constant Field Values
-
NameAndTypeTag
static final int NameAndTypeTag- See Also:
- Constant Field Values
-
MethodHandleTag
static final int MethodHandleTag- See Also:
- Constant Field Values
-
MethodTypeTag
static final int MethodTypeTag- See Also:
- Constant Field Values
-
DynamicTag
static final int DynamicTag- See Also:
- Constant Field Values
-
InvokeDynamicTag
static final int InvokeDynamicTag- See Also:
- Constant Field Values
-
ModuleTag
static final int ModuleTag- See Also:
- Constant Field Values
-
PackageTag
static final int PackageTag- See Also:
- Constant Field Values
-
ConstantMethodRefFixedSize
static final int ConstantMethodRefFixedSize- See Also:
- Constant Field Values
-
ConstantClassFixedSize
static final int ConstantClassFixedSize- See Also:
- Constant Field Values
-
ConstantDoubleFixedSize
static final int ConstantDoubleFixedSize- See Also:
- Constant Field Values
-
ConstantFieldRefFixedSize
static final int ConstantFieldRefFixedSize- See Also:
- Constant Field Values
-
ConstantFloatFixedSize
static final int ConstantFloatFixedSize- See Also:
- Constant Field Values
-
ConstantIntegerFixedSize
static final int ConstantIntegerFixedSize- See Also:
- Constant Field Values
-
ConstantInterfaceMethodRefFixedSize
static final int ConstantInterfaceMethodRefFixedSize- See Also:
- Constant Field Values
-
ConstantLongFixedSize
static final int ConstantLongFixedSize- See Also:
- Constant Field Values
-
ConstantStringFixedSize
static final int ConstantStringFixedSize- See Also:
- Constant Field Values
-
ConstantUtf8FixedSize
static final int ConstantUtf8FixedSize- See Also:
- Constant Field Values
-
ConstantNameAndTypeFixedSize
static final int ConstantNameAndTypeFixedSize- See Also:
- Constant Field Values
-
ConstantMethodHandleFixedSize
static final int ConstantMethodHandleFixedSize- See Also:
- Constant Field Values
-
ConstantMethodTypeFixedSize
static final int ConstantMethodTypeFixedSize- See Also:
- Constant Field Values
-
ConstantDynamicFixedSize
static final int ConstantDynamicFixedSize- See Also:
- Constant Field Values
-
ConstantInvokeDynamicFixedSize
static final int ConstantInvokeDynamicFixedSize- See Also:
- Constant Field Values
-
ConstantModuleFixedSize
static final int ConstantModuleFixedSize- See Also:
- Constant Field Values
-
ConstantPackageFixedSize
static final int ConstantPackageFixedSize- See Also:
- Constant Field Values
-
MethodHandleRefKindGetField
static final int MethodHandleRefKindGetField- See Also:
- Constant Field Values
-
MethodHandleRefKindGetStatic
static final int MethodHandleRefKindGetStatic- See Also:
- Constant Field Values
-
MethodHandleRefKindPutField
static final int MethodHandleRefKindPutField- See Also:
- Constant Field Values
-
MethodHandleRefKindPutStatic
static final int MethodHandleRefKindPutStatic- See Also:
- Constant Field Values
-
MethodHandleRefKindInvokeVirtual
static final int MethodHandleRefKindInvokeVirtual- See Also:
- Constant Field Values
-
MethodHandleRefKindInvokeStatic
static final int MethodHandleRefKindInvokeStatic- See Also:
- Constant Field Values
-
MethodHandleRefKindInvokeSpecial
static final int MethodHandleRefKindInvokeSpecial- See Also:
- Constant Field Values
-
MethodHandleRefKindNewInvokeSpecial
static final int MethodHandleRefKindNewInvokeSpecial- See Also:
- Constant Field Values
-
MethodHandleRefKindInvokeInterface
static final int MethodHandleRefKindInvokeInterface- See Also:
- Constant Field Values
-
MAJOR_VERSION_1_1
static final int MAJOR_VERSION_1_1- See Also:
- Constant Field Values
-
MAJOR_VERSION_1_2
static final int MAJOR_VERSION_1_2- See Also:
- Constant Field Values
-
MAJOR_VERSION_1_3
static final int MAJOR_VERSION_1_3- See Also:
- Constant Field Values
-
MAJOR_VERSION_1_4
static final int MAJOR_VERSION_1_4- See Also:
- Constant Field Values
-
MAJOR_VERSION_1_5
static final int MAJOR_VERSION_1_5- See Also:
- Constant Field Values
-
MAJOR_VERSION_1_6
static final int MAJOR_VERSION_1_6- See Also:
- Constant Field Values
-
MAJOR_VERSION_1_7
static final int MAJOR_VERSION_1_7- See Also:
- Constant Field Values
-
MAJOR_VERSION_1_8
static final int MAJOR_VERSION_1_8- See Also:
- Constant Field Values
-
MAJOR_VERSION_9
static final int MAJOR_VERSION_9- See Also:
- Constant Field Values
-
MAJOR_VERSION_10
static final int MAJOR_VERSION_10- See Also:
- Constant Field Values
-
MAJOR_VERSION_11
static final int MAJOR_VERSION_11- See Also:
- Constant Field Values
-
MAJOR_VERSION_12
static final int MAJOR_VERSION_12- See Also:
- Constant Field Values
-
MAJOR_VERSION_13
static final int MAJOR_VERSION_13- See Also:
- Constant Field Values
-
MAJOR_VERSION_14
static final int MAJOR_VERSION_14- See Also:
- Constant Field Values
-
MAJOR_VERSION_15
static final int MAJOR_VERSION_15- See Also:
- Constant Field Values
-
MAJOR_VERSION_16
static final int MAJOR_VERSION_16- See Also:
- Constant Field Values
-
MAJOR_VERSION_17
static final int MAJOR_VERSION_17- See Also:
- Constant Field Values
-
MAJOR_VERSION_0
static final int MAJOR_VERSION_0- See Also:
- Constant Field Values
-
MAJOR_LATEST_VERSION
static final int MAJOR_LATEST_VERSION- See Also:
- Constant Field Values
-
MINOR_VERSION_0
static final int MINOR_VERSION_0- See Also:
- Constant Field Values
-
MINOR_VERSION_1
static final int MINOR_VERSION_1- See Also:
- Constant Field Values
-
MINOR_VERSION_2
static final int MINOR_VERSION_2- See Also:
- Constant Field Values
-
MINOR_VERSION_3
static final int MINOR_VERSION_3- See Also:
- Constant Field Values
-
MINOR_VERSION_4
static final int MINOR_VERSION_4- See Also:
- Constant Field Values
-
MINOR_VERSION_PREVIEW
static final int MINOR_VERSION_PREVIEW- See Also:
- Constant Field Values
-
JDK1_1
static final long JDK1_1- See Also:
- Constant Field Values
-
JDK1_2
static final long JDK1_2- See Also:
- Constant Field Values
-
JDK1_3
static final long JDK1_3- See Also:
- Constant Field Values
-
JDK1_4
static final long JDK1_4- See Also:
- Constant Field Values
-
JDK1_5
static final long JDK1_5- See Also:
- Constant Field Values
-
JDK1_6
static final long JDK1_6- See Also:
- Constant Field Values
-
JDK1_7
static final long JDK1_7- See Also:
- Constant Field Values
-
JDK1_8
static final long JDK1_8- See Also:
- Constant Field Values
-
JDK9
static final long JDK9- See Also:
- Constant Field Values
-
JDK10
static final long JDK10- See Also:
- Constant Field Values
-
JDK11
static final long JDK11- See Also:
- Constant Field Values
-
JDK12
static final long JDK12- See Also:
- Constant Field Values
-
JDK13
static final long JDK13- See Also:
- Constant Field Values
-
JDK14
static final long JDK14- See Also:
- Constant Field Values
-
JDK15
static final long JDK15- See Also:
- Constant Field Values
-
JDK16
static final long JDK16- See Also:
- Constant Field Values
-
JDK17
static final long JDK17- See Also:
- Constant Field Values
-
CLDC_1_1
static final long CLDC_1_1- See Also:
- Constant Field Values
-
JDK_DEFERRED
static final long JDK_DEFERRED- See Also:
- Constant Field Values
-
INT_ARRAY
static final int INT_ARRAY- See Also:
- Constant Field Values
-
BYTE_ARRAY
static final int BYTE_ARRAY- See Also:
- Constant Field Values
-
BOOLEAN_ARRAY
static final int BOOLEAN_ARRAY- See Also:
- Constant Field Values
-
SHORT_ARRAY
static final int SHORT_ARRAY- See Also:
- Constant Field Values
-
CHAR_ARRAY
static final int CHAR_ARRAY- See Also:
- Constant Field Values
-
LONG_ARRAY
static final int LONG_ARRAY- See Also:
- Constant Field Values
-
FLOAT_ARRAY
static final int FLOAT_ARRAY- See Also:
- Constant Field Values
-
DOUBLE_ARRAY
static final int DOUBLE_ARRAY- See Also:
- Constant Field Values
-
ATTR_SOURCE
static final int ATTR_SOURCE- See Also:
- Constant Field Values
-
ATTR_LINES
static final int ATTR_LINES- See Also:
- Constant Field Values
-
ATTR_VARS
static final int ATTR_VARS- See Also:
- Constant Field Values
-
ATTR_STACK_MAP_TABLE
static final int ATTR_STACK_MAP_TABLE- See Also:
- Constant Field Values
-
ATTR_STACK_MAP
static final int ATTR_STACK_MAP- See Also:
- Constant Field Values
-
ATTR_TYPE_ANNOTATION
static final int ATTR_TYPE_ANNOTATION- See Also:
- Constant Field Values
-
ATTR_METHOD_PARAMETERS
static final int ATTR_METHOD_PARAMETERS- See Also:
- Constant Field Values
-
FLAG_SERIALIZABLE
static final int FLAG_SERIALIZABLE- See Also:
- Constant Field Values
-
FLAG_MARKERS
static final int FLAG_MARKERS- See Also:
- Constant Field Values
-
FLAG_BRIDGES
static final int FLAG_BRIDGES- See Also:
- Constant Field Values
-
-
Method Details
-
getLatestJDKLevel
static long getLatestJDKLevel() -
getComplianceLevelForJavaVersion
static long getComplianceLevelForJavaVersion(int major)As we move away from declaring every compliance level explicitly (such as JDK11, JDK12 etc.), this method can be used to compute the compliance level on the fly for a given Java major version.- Parameters:
major
- Java major version- Returns:
- the compliance level for the given Java version
-