Interface Attribute<A extends AttributePREVIEW<A>>
- Type Parameters:
A
- the attribute type
- All Superinterfaces:
ClassFileElementPREVIEW
- All Known Subinterfaces:
AnnotationDefaultAttributePREVIEW
,BootstrapMethodsAttributePREVIEW
,CharacterRangeTableAttributePREVIEW
,CodeAttributePREVIEW
,CompilationIDAttributePREVIEW
,ConstantValueAttributePREVIEW
,DeprecatedAttributePREVIEW
,EnclosingMethodAttributePREVIEW
,ExceptionsAttributePREVIEW
,InnerClassesAttributePREVIEW
,LineNumberTableAttributePREVIEW
,LocalVariableTableAttributePREVIEW
,LocalVariableTypeTableAttributePREVIEW
,MethodParametersAttributePREVIEW
,ModuleAttributePREVIEW
,ModuleHashesAttributePREVIEW
,ModuleMainClassAttributePREVIEW
,ModulePackagesAttributePREVIEW
,ModuleResolutionAttributePREVIEW
,ModuleTargetAttributePREVIEW
,NestHostAttributePREVIEW
,NestMembersAttributePREVIEW
,PermittedSubclassesAttributePREVIEW
,RecordAttributePREVIEW
,RuntimeInvisibleAnnotationsAttributePREVIEW
,RuntimeInvisibleParameterAnnotationsAttributePREVIEW
,RuntimeInvisibleTypeAnnotationsAttributePREVIEW
,RuntimeVisibleAnnotationsAttributePREVIEW
,RuntimeVisibleParameterAnnotationsAttributePREVIEW
,RuntimeVisibleTypeAnnotationsAttributePREVIEW
,SignatureAttributePREVIEW
,SourceDebugExtensionAttributePREVIEW
,SourceFileAttributePREVIEW
,SourceIDAttributePREVIEW
,StackMapTableAttributePREVIEW
,SyntheticAttributePREVIEW
,UnknownAttributePREVIEW
- All Known Implementing Classes:
CustomAttributePREVIEW
public sealed interface Attribute<A extends AttributePREVIEW<A>>
extends ClassFileElementPREVIEW
permits AnnotationDefaultAttributePREVIEW, BootstrapMethodsAttributePREVIEW, CharacterRangeTableAttributePREVIEW, CodeAttributePREVIEW, CompilationIDAttributePREVIEW, ConstantValueAttributePREVIEW, DeprecatedAttributePREVIEW, EnclosingMethodAttributePREVIEW, ExceptionsAttributePREVIEW, InnerClassesAttributePREVIEW, LineNumberTableAttributePREVIEW, LocalVariableTableAttributePREVIEW, LocalVariableTypeTableAttributePREVIEW, MethodParametersAttributePREVIEW, ModuleAttributePREVIEW, ModuleHashesAttributePREVIEW, ModuleMainClassAttributePREVIEW, ModulePackagesAttributePREVIEW, ModuleResolutionAttributePREVIEW, ModuleTargetAttributePREVIEW, NestHostAttributePREVIEW, NestMembersAttributePREVIEW, PermittedSubclassesAttributePREVIEW, RecordAttributePREVIEW, RuntimeInvisibleAnnotationsAttributePREVIEW, RuntimeInvisibleParameterAnnotationsAttributePREVIEW, RuntimeInvisibleTypeAnnotationsAttributePREVIEW, RuntimeVisibleAnnotationsAttributePREVIEW, RuntimeVisibleParameterAnnotationsAttributePREVIEW, RuntimeVisibleTypeAnnotationsAttributePREVIEW, SignatureAttributePREVIEW, SourceDebugExtensionAttributePREVIEW, SourceFileAttributePREVIEW, SourceIDAttributePREVIEW, StackMapTableAttributePREVIEW, SyntheticAttributePREVIEW, UnknownAttributePREVIEW, CustomAttributePREVIEW<T> (not exhaustive)
Attribute
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.
Models a classfile attribute (JVMS 4.7). Many, though not all, subtypes of
Attribute will implement
ClassElement
PREVIEW, MethodElement
PREVIEW, FieldElement
PREVIEW, or CodeElement
PREVIEW; attributes that
are also elements will be delivered when traversing the elements of the
corresponding model type. Additionally, all attributes are accessible
directly from the corresponding model type through AttributedElement.findAttribute(AttributeMapper)
PREVIEW.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionReturns theAttributeMapper
PREVIEW associated with this attribute.Returns the name of the attribute.
-
Method Details
-
attributeName
-
attributeMapper
AttributeMapperPREVIEW<A> attributeMapper()Returns theAttributeMapper
PREVIEW associated with this attribute.- Returns:
- the
AttributeMapper
PREVIEW associated with this attribute
-
Attribute
when preview features are enabled.