public 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.
| Parameter | Description |
|---|---|
name | Field name. |
type | Declared field type. |
flags | Modifier flags. |
annotations | Field annotations. |
declaringClass | Declaring class name, supplied by Type reflection. |
attribute = type(obj).getAttribute("value")
attribute.accessible = true
print(attribute.getValue(obj))