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

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).
Sealed Class Hierarchy Graph:
Sealed class hierarchy graph for AttributeSealed class hierarchy graph for Attribute
Since:
24
  • Method Details

    • attributeName

      Utf8Entry attributeName()
      Returns the name of the attribute.
      Returns:
      the name of the attribute
    • attributeMapper

      AttributeMapper<A> attributeMapper()
      Returns the AttributeMapper associated with this attribute.
      Returns:
      the AttributeMapper associated with this attribute