- All Superinterfaces:
ClassfileElement,WritableElement<A>
- 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:
BoundAttribute,BoundAttribute.BoundAnnotationDefaultAttr,BoundAttribute.BoundBootstrapMethodsAttribute,BoundAttribute.BoundCharacterRangeTableAttribute,BoundAttribute.BoundCodeAttribute,BoundAttribute.BoundCompilationIDAttribute,BoundAttribute.BoundConstantValueAttribute,BoundAttribute.BoundDeprecatedAttribute,BoundAttribute.BoundEnclosingMethodAttribute,BoundAttribute.BoundExceptionsAttribute,BoundAttribute.BoundInnerClassesAttribute,BoundAttribute.BoundLineNumberTableAttribute,BoundAttribute.BoundLocalVariableTableAttribute,BoundAttribute.BoundLocalVariableTypeTableAttribute,BoundAttribute.BoundMethodParametersAttribute,BoundAttribute.BoundModuleAttribute,BoundAttribute.BoundModuleHashesAttribute,BoundAttribute.BoundModuleMainClassAttribute,BoundAttribute.BoundModulePackagesAttribute,BoundAttribute.BoundModuleResolutionAttribute,BoundAttribute.BoundModuleTargetAttribute,BoundAttribute.BoundNestHostAttribute,BoundAttribute.BoundNestMembersAttribute,BoundAttribute.BoundPermittedSubclassesAttribute,BoundAttribute.BoundRecordAttribute,BoundAttribute.BoundRuntimeInvisibleAnnotationsAttribute,BoundAttribute.BoundRuntimeInvisibleParameterAnnotationsAttribute,BoundAttribute.BoundRuntimeInvisibleTypeAnnotationsAttribute,BoundAttribute.BoundRuntimeVisibleAnnotationsAttribute,BoundAttribute.BoundRuntimeVisibleParameterAnnotationsAttribute,BoundAttribute.BoundRuntimeVisibleTypeAnnotationsAttribute,BoundAttribute.BoundSignatureAttribute,BoundAttribute.BoundSourceDebugExtensionAttribute,BoundAttribute.BoundSourceFileAttribute,BoundAttribute.BoundSourceIDAttribute,BoundAttribute.BoundStackMapTableAttribute,BoundAttribute.BoundSyntheticAttribute,BoundAttribute.BoundUnknownAttribute,CodeImpl,CustomAttribute,UnboundAttribute,UnboundAttribute.AdHocAttribute,UnboundAttribute.CustomAttribute,UnboundAttribute.EmptyBootstrapAttribute,UnboundAttribute.UnboundAnnotationDefaultAttribute,UnboundAttribute.UnboundCharacterRangeTableAttribute,UnboundAttribute.UnboundCompilationIDAttribute,UnboundAttribute.UnboundConstantValueAttribute,UnboundAttribute.UnboundDeprecatedAttribute,UnboundAttribute.UnboundEnclosingMethodAttribute,UnboundAttribute.UnboundExceptionsAttribute,UnboundAttribute.UnboundInnerClassesAttribute,UnboundAttribute.UnboundLineNumberTableAttribute,UnboundAttribute.UnboundLocalVariableTableAttribute,UnboundAttribute.UnboundLocalVariableTypeTableAttribute,UnboundAttribute.UnboundMethodParametersAttribute,UnboundAttribute.UnboundModuleAttribute,UnboundAttribute.UnboundModuleHashesAttribute,UnboundAttribute.UnboundModuleMainClassAttribute,UnboundAttribute.UnboundModulePackagesAttribute,UnboundAttribute.UnboundModuleResolutionAttribute,UnboundAttribute.UnboundModuleTargetAttribute,UnboundAttribute.UnboundNestHostAttribute,UnboundAttribute.UnboundNestMembersAttribute,UnboundAttribute.UnboundPermittedSubclassesAttribute,UnboundAttribute.UnboundRecordAttribute,UnboundAttribute.UnboundRuntimeInvisibleAnnotationsAttribute,UnboundAttribute.UnboundRuntimeInvisibleParameterAnnotationsAttribute,UnboundAttribute.UnboundRuntimeInvisibleTypeAnnotationsAttribute,UnboundAttribute.UnboundRuntimeVisibleAnnotationsAttribute,UnboundAttribute.UnboundRuntimeVisibleParameterAnnotationsAttribute,UnboundAttribute.UnboundRuntimeVisibleTypeAnnotationsAttribute,UnboundAttribute.UnboundSignatureAttribute,UnboundAttribute.UnboundSourceDebugExtensionAttribute,UnboundAttribute.UnboundSourceFileAttribute,UnboundAttribute.UnboundSourceIDAttribute,UnboundAttribute.UnboundStackMapTableAttribute,UnboundAttribute.UnboundSyntheticAttribute
public sealed interface Attribute<A extends Attribute<A>>
extends WritableElement<A>
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, BoundAttribute<T>, UnboundAttribute<T>
Models a classfile attribute . 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 theAttributeMapperassociated with this attribute.Returns the name of the attribute.Methods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
attributeName
String attributeName()Returns the name of the attribute.- Returns:
- the name of the attribute
-
attributeMapper
AttributeMapper<A> attributeMapper()Returns theAttributeMapperassociated with this attribute.- Returns:
- the
AttributeMapperassociated with this attribute
-