Interface Attribute<A extends Attribute<A>>
- Type Parameters:
A
- the attribute type
- All Superinterfaces:
ClassFileElement
- All Known Subinterfaces:
AnnotationDefaultAttribute
,BootstrapMethodsAttribute
,CharacterRangeTableAttribute
,CodeAttribute
,CompilationIDAttribute
,ConstantValueAttribute
,DeprecatedAttribute
,EnclosingMethodAttribute
,ExceptionsAttribute
,InnerClassesAttribute
,LineNumberTableAttribute
,LocalVariableTableAttribute
,LocalVariableTypeTableAttribute
,MethodParametersAttribute
,ModuleAttribute
,ModuleHashesAttribute
,ModuleMainClassAttribute
,ModulePackagesAttribute
,ModuleResolutionAttribute
,ModuleTargetAttribute
,NestHostAttribute
,NestMembersAttribute
,PermittedSubclassesAttribute
,RecordAttribute
,RuntimeInvisibleAnnotationsAttribute
,RuntimeInvisibleParameterAnnotationsAttribute
,RuntimeInvisibleTypeAnnotationsAttribute
,RuntimeVisibleAnnotationsAttribute
,RuntimeVisibleParameterAnnotationsAttribute
,RuntimeVisibleTypeAnnotationsAttribute
,SignatureAttribute
,SourceDebugExtensionAttribute
,SourceFileAttribute
,SourceIDAttribute
,StackMapTableAttribute
,SyntheticAttribute
,UnknownAttribute
- All Known Implementing Classes:
CustomAttribute
public sealed interface Attribute<A extends Attribute<A>>
extends ClassFileElement
permits AnnotationDefaultAttribute, BootstrapMethodsAttribute, CharacterRangeTableAttribute, CodeAttribute, CompilationIDAttribute, ConstantValueAttribute, DeprecatedAttribute, EnclosingMethodAttribute, ExceptionsAttribute, InnerClassesAttribute, LineNumberTableAttribute, LocalVariableTableAttribute, LocalVariableTypeTableAttribute, MethodParametersAttribute, ModuleAttribute, ModuleHashesAttribute, ModuleMainClassAttribute, ModulePackagesAttribute, ModuleResolutionAttribute, ModuleTargetAttribute, NestHostAttribute, NestMembersAttribute, PermittedSubclassesAttribute, RecordAttribute, RuntimeInvisibleAnnotationsAttribute, RuntimeInvisibleParameterAnnotationsAttribute, RuntimeInvisibleTypeAnnotationsAttribute, RuntimeVisibleAnnotationsAttribute, RuntimeVisibleParameterAnnotationsAttribute, RuntimeVisibleTypeAnnotationsAttribute, SignatureAttribute, SourceDebugExtensionAttribute, SourceFileAttribute, SourceIDAttribute, StackMapTableAttribute, SyntheticAttribute, UnknownAttribute, CustomAttribute<T> (not exhaustive)
Models a classfile attribute (JVMS 4.7). Many, though not all, subtypes of
Attribute will implement
ClassElement
, MethodElement
, FieldElement
, or CodeElement
; 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)
.-
Method Summary
Modifier and TypeMethodDescriptionReturns theAttributeMapper
associated with this attribute.Returns the name of the attribute.
-
Method Details
-
attributeName
-
attributeMapper
AttributeMapper<A> attributeMapper()Returns theAttributeMapper
associated with this attribute.- Returns:
- the
AttributeMapper
associated with this attribute
-