Enum Class AttributeMapper.AttributeStability
java.lang.Object
java.lang.Enum<AttributeMapper.AttributeStabilityPREVIEW>
java.lang.classfile.AttributeMapper.AttributeStability
- All Implemented Interfaces:
Serializable
,Comparable<AttributeMapper.AttributeStabilityPREVIEW>
,Constable
- Enclosing interface:
AttributeMapperPREVIEW<A>
public static enum AttributeMapper.AttributeStability
extends Enum<AttributeMapper.AttributeStabilityPREVIEW>
AttributeStability
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Attribute stability indicator
- Since:
- 22
-
Nested Class Summary
Nested classes/interfaces declared in class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe attribute contains only pure data and CP refs, so can be bulk-copied when CP sharing is in effect, and need to be exploded and rewritten when CP sharing is not in effect.The attribute may contain labels, so need to be exploded and rewritten when the Code array is perturbed.The attribute contains only pure data, such as timestamps, and can always be bulk-copied.The attribute is completely unknown and so we consult theClassFile.AttributesProcessingOption
PREVIEW option to determine whether to preserve or drop it during transformation.The attribute may contain indexes into structured not managed by the library (type variable lists, etc) and so we consult theClassFile.AttributesProcessingOption
PREVIEW option to determine whether to preserve or drop it during transformation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STATELESS
The attribute contains only pure data, such as timestamps, and can always be bulk-copied. -
CP_REFS
The attribute contains only pure data and CP refs, so can be bulk-copied when CP sharing is in effect, and need to be exploded and rewritten when CP sharing is not in effect. -
LABELS
The attribute may contain labels, so need to be exploded and rewritten when the Code array is perturbed. -
UNSTABLE
The attribute may contain indexes into structured not managed by the library (type variable lists, etc) and so we consult theClassFile.AttributesProcessingOption
PREVIEW option to determine whether to preserve or drop it during transformation. -
UNKNOWN
The attribute is completely unknown and so we consult theClassFile.AttributesProcessingOption
PREVIEW option to determine whether to preserve or drop it during transformation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
AttributeStability
when preview features are enabled.