Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use CustomAttribute
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
AttributeMapper
to mediate between the classfile
format and the CustomAttribute representation.
Modifier and Type | Field and Description |
---|---|
private final AttributeMapper |
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
public final AttributeMapper | attributeMapper()
Implements java. Returns the |
public final String | attributeName()
Implements java. Returns the name of the attribute. |
public String | |
public final void | writeTo(BufWriter
the writer buf)Implements java. Writes the element to the specified writer |
mapper | back to summary |
---|---|
private final AttributeMapper<T> mapper |
CustomAttribute | back to summary |
---|---|
protected CustomAttribute(AttributeMapper<T> mapper) Construct a CustomAttribute.
|
attributeMapper | back to summary |
---|---|
public final AttributeMapper Implements java. Doc from java. Returns the
|
attributeName | back to summary |
---|---|
public final String attributeName() Implements java. Doc from java. Returns the name of the attribute. |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- |
writeTo | back to summary |
---|---|
public final void writeTo(BufWriter buf) Implements java. Doc from java. Writes the element to the specified writer
|