Top Inners Fields Constructors Methods
jdk.internal.classfile.impl

public abstract sealed Class BoundAttribute<T extends Attribute<T>>

extends AbstractElement
implements Attribute<T extends Attribute<T>>
permits BoundUnknownAttribute, BoundStackMapTableAttribute, BoundSyntheticAttribute, BoundLineNumberTableAttribute, BoundCharacterRangeTableAttribute, BoundLocalVariableTableAttribute, BoundLocalVariableTypeTableAttribute, BoundMethodParametersAttribute, BoundModuleHashesAttribute, BoundRecordAttribute, BoundDeprecatedAttribute, BoundSignatureAttribute, BoundSourceFileAttribute, BoundModuleMainClassAttribute, BoundNestHostAttribute, BoundSourceDebugExtensionAttribute, BoundConstantValueAttribute, BoundModuleTargetAttribute, BoundCompilationIDAttribute, BoundSourceIDAttribute, BoundModuleResolutionAttribute, BoundExceptionsAttribute, BoundModuleAttribute, BoundModulePackagesAttribute, BoundNestMembersAttribute, BoundBootstrapMethodsAttribute, BoundInnerClassesAttribute, BoundEnclosingMethodAttribute, BoundAnnotationDefaultAttr, BoundRuntimeVisibleTypeAnnotationsAttribute, BoundRuntimeInvisibleTypeAnnotationsAttribute, BoundRuntimeVisibleParameterAnnotationsAttribute, BoundRuntimeInvisibleParameterAnnotationsAttribute, BoundRuntimeInvisibleAnnotationsAttribute, BoundRuntimeVisibleAnnotationsAttribute, BoundPermittedSubclassesAttribute, BoundCodeAttribute
Class Inheritance
All Implemented Interfaces
java.lang.classfile.Attribute, java.lang.classfile.WritableElement, java.lang.classfile.ClassFileElement
Known Direct Subclasses
jdk.internal.classfile.impl.BoundAttribute.BoundUnknownAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundStackMapTableAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundSyntheticAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundLineNumberTableAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundCharacterRangeTableAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundLocalVariableTableAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundLocalVariableTypeTableAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundMethodParametersAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundModuleHashesAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundRecordAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundDeprecatedAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundSignatureAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundSourceFileAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundModuleMainClassAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundNestHostAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundSourceDebugExtensionAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundConstantValueAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundModuleTargetAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundCompilationIDAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundSourceIDAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundModuleResolutionAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundExceptionsAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundModuleAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundModulePackagesAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundNestMembersAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundBootstrapMethodsAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundInnerClassesAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundEnclosingMethodAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundAnnotationDefaultAttr, jdk.internal.classfile.impl.BoundAttribute.BoundRuntimeVisibleTypeAnnotationsAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundRuntimeInvisibleTypeAnnotationsAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundRuntimeVisibleParameterAnnotationsAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundRuntimeInvisibleParameterAnnotationsAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundRuntimeInvisibleAnnotationsAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundRuntimeVisibleAnnotationsAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundPermittedSubclassesAttribute, jdk.internal.classfile.impl.BoundAttribute.BoundCodeAttribute
Imports
java.util.ArrayList, .Collections, .List, .Optional, java.util.function.Function, java.lang.classfile.*, java.lang.classfile.attribute.*, java.lang.classfile.constantpool.ClassEntry, .ConstantPool, .ConstantValueEntry, .LoadableConstantEntry, .ModuleEntry, .NameAndTypeEntry, .PackageEntry, .Utf8Entry, jdk.internal.access.SharedSecrets

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public abstract static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
pack-priv final ClassReaderImpl
private final AttributeMapper<T>
pack-priv static final int
pack-priv final int

Constructor Summary

AccessConstructor and Description
pack-priv
BoundAttribute(ClassReader classReader, AttributeMapper<T> mapper, int payloadStart)

Method Summary

Modifier and TypeMethod and Description
public AttributeMapper<T>
attributeMapper()

Implements java.lang.classfile.Attribute.attributeMapper.

Returns the AttributeMapper associated with this attribute.

public String
attributeName()

Implements java.lang.classfile.Attribute.attributeName.

Returns the name of the attribute.

public ConstantPool
public byte[]
public int
public static List<Attribute<?>>
readAttributes(AttributedElement enclosing, ClassReader reader, int pos, Function<Utf8Entry, AttributeMapper<?>> customAttributes)

pack-priv <E> List<E>
public static AttributeMapper<?>

Returns:

the attribute mapper for a standard attribute
standardAttribute
(Utf8Entry
the name of the attribute to find
name
)

Returns the attribute mapper for a standard attribute.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
public void
public void
public void
public void
writeTo(BufWriter
the writer
buf
)

Implements java.lang.classfile.WritableElement.writeTo.

Writes the element to the specified writer