Module org.glavo.classfile
Package org.glavo.classfile.attribute
Interface SourceDebugExtensionAttribute
- All Superinterfaces:
Attribute<SourceDebugExtensionAttribute>,ClassElement,ClassFileElement,WritableElement<SourceDebugExtensionAttribute>
- All Known Implementing Classes:
BoundAttribute.BoundSourceDebugExtensionAttribute,UnboundAttribute.UnboundSourceDebugExtensionAttribute
public sealed interface SourceDebugExtensionAttribute
extends Attribute<SourceDebugExtensionAttribute>, ClassElement
permits BoundAttribute.BoundSourceDebugExtensionAttribute, UnboundAttribute.UnboundSourceDebugExtensionAttribute
Models the
SourceDebugExtension attribute.
Delivered as a ClassElement when traversing the elements of
a ClassModel.
The attribute does not permit multiple instances in a given location. Subsequent occurrence of the attribute takes precedence during the attributed element build or transformation.
The attribute was introduced in the Java SE Platform version 5.0.
- Since:
- 22
-
Method Summary
Methods inherited from interface org.glavo.classfile.Attribute
attributeMapper, attributeNameMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
contents
byte[] contents()Returns the debug extension payload.- Returns:
- the debug extension payload
-
of
Returns aSourceDebugExtensionattribute.- Parameters:
contents- the extension contents- Returns:
- a
SourceDebugExtensionattribute
-