Member

Represents a set of behaviours common to reflective elements.

Members

Functions

getAttributes
const(Attribute)[] getAttributes()

Returns an array of attributes that are attached to this element.

getAttributes
const(Attribute)[] getAttributes(Type attributeType)

Returns an array of attributes of the given type that are attched to this element. If no such attributes exist, an empty array is returned.

getAttributes
const(Attribute)[] getAttributes(TypeInfo attributeTypeInfo)

Returns an array of attributes of the given type that are attched to this element. If no such attributes exist, an empty array is returned.

getAttributes
const(Attribute)[] getAttributes()

Ditto, but the type is given by template parameter.

getDeclaringType
const(Type) getDeclaringType()

Returns the type that encapsulates this one. Null is returned if this is the topmost element, or if the outer type lacks reflective meta information.

getDeclaringTypeInfo
const(TypeInfo) getDeclaringTypeInfo()

Returns a TypeInfo object for the declaring element.

getFullName
string getFullName()

Returns the fully-qualified name of the element, including the package and module name, and any types that might enclose it.

getName
string getName()

The name of the element.

getProtection
string getProtection()

Returns a string that represents this element's declared protection.

hasAttribute
bool hasAttribute(TypeInfo info)
Undocumented in source. Be warned that the author may not have intended to support it.
hasAttribute
bool hasAttribute()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

isAccessible
bool isAccessible [@property getter]
Undocumented in source.

Meta