Attribute
classin packageklyn.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 ArrayList<Annotation>
Attribute annotations
public readonly property flags
flags as Int
Raw modifier flags
public readonly property isConst
isConst as Boolean
True if the attribute is a compile-time class constant.
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 a runtime readonly field rather than a compile-time constant.
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> = [], declaringClass as String = "")
Describes a field and its declaring class, independently of hidden fields.
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.