Attribute
class in package klyn.reflection

    public class Attribute:

Attribute

Class representing an attribute (field).

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | accessible `accessible as Boolean:` | Allows reflective access to a non-public attribute when enabled.
public readonly property | annotations `annotations as IList<Annotation>:` | Attribute annotations
public readonly property | flags `flags as Int:` | Raw modifier flags
public readonly property | isPrivate `isPrivate as Boolean:` | True if the attribute is private.
public readonly property | isProtected `isProtected as Boolean:` | True if the attribute is protected.
public readonly property | isPublic `isPublic as Boolean:` | True if the attribute is public.
public readonly property | isReadonly `isReadonly as Boolean:` | True if the attribute is readonly.
public readonly property | isStatic `isStatic as Boolean:` | True if the attribute is static.
public readonly property | name `name as String:` | Attribute name
public readonly property | type `type as Type:` | Attribute type

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | Attribute `Attribute(name as String, type as Type, flags as Int = 0, annotations as IList<Annotation> = []):` | Constructor for Attribute

Methods

Modifier and Type | Member | Description
--- | --- | ---
public native | getValue `getValue(target as Object) as Object` | Returns the current value of the attribute on the given target object.