public class Attribute
Class representing an attribute (field).
| Modifier and Type | Member | Description |
|---|---|---|
| public property | accessibleaccessible as Boolean |
Allows reflective access to a non-public attribute when enabled. |
| public readonly property | annotationsannotations as ArrayList<Annotation> |
Attribute annotations |
| public readonly property | flagsflags as Int |
Raw modifier flags |
| public readonly property | isConstisConst as Boolean |
True if the attribute is a compile-time class constant. |
| public readonly property | isPrivateisPrivate as Boolean |
True if the attribute is private. |
| public readonly property | isProtectedisProtected as Boolean |
True if the attribute is protected. |
| public readonly property | isPublicisPublic as Boolean |
True if the attribute is public. |
| public readonly property | isReadonlyisReadonly as Boolean |
True if the attribute is a runtime readonly field rather than a compile-time constant. |
| public readonly property | isStaticisStatic as Boolean |
True if the attribute is static. |
| public readonly property | namename as String |
Attribute name |
| public readonly property | typetype as Type |
Attribute type |
| Modifier and Type | Member | Description |
|---|---|---|
| public | Attribute | Describes a field and its declaring class, independently of hidden fields. |