Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use Attribute
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
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)
.
Modifier and Type | Method and Description |
---|---|
public AttributeMapper | Returns: theAttributeMapper associated with this attributeReturns the |
public String |
attributeMapper | back to summary |
---|---|
public AttributeMapper Returns the
|
attributeName | back to summary |
---|---|
public String attributeName() Returns the name of the attribute.
|