Module org.glavo.classfile
Package org.glavo.classfile.impl
Class BoundAttribute<T extends Attribute<T>>
java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.BoundAttribute<T>
- All Implemented Interfaces:
Attribute<T>,ClassfileElement,WritableElement<T>
- Direct Known Subclasses:
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
public abstract sealed class BoundAttribute<T extends Attribute<T>>
extends AbstractElement
implements Attribute<T>
permits 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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionReturns theAttributeMapperassociated with this attribute.Returns the name of the attribute.byte[]contents()intreadAttributes(AttributedElement enclosing, ClassReader reader, int pos, Function<Utf8Entry, AttributeMapper<?>> customAttributes) toString()voidWrites the element to the specified writervoidwriteTo(DirectClassBuilder builder) voidwriteTo(DirectCodeBuilder builder) voidwriteTo(DirectFieldBuilder builder) voidwriteTo(DirectMethodBuilder builder)
-
Method Details
-
payloadLen
public int payloadLen() -
attributeName
Description copied from interface:AttributeReturns the name of the attribute.- Specified by:
attributeNamein interfaceAttribute<T extends Attribute<T>>- Returns:
- the name of the attribute
-
attributeMapper
Description copied from interface:AttributeReturns theAttributeMapperassociated with this attribute.- Specified by:
attributeMapperin interfaceAttribute<T extends Attribute<T>>- Returns:
- the
AttributeMapperassociated with this attribute
-
contents
public byte[] contents() -
writeTo
- Overrides:
writeToin classAbstractElement
-
writeTo
- Overrides:
writeToin classAbstractElement
-
writeTo
- Overrides:
writeToin classAbstractElement
-
writeTo
- Overrides:
writeToin classAbstractElement
-
writeTo
Description copied from interface:WritableElementWrites the element to the specified writer- Specified by:
writeToin interfaceWritableElement<T extends Attribute<T>>- Parameters:
buf- the writer
-
constantPool
-
toString
-
readAttributes
public static List<Attribute<?>> readAttributes(AttributedElement enclosing, ClassReader reader, int pos, Function<Utf8Entry, AttributeMapper<?>> customAttributes)
-