Packageorg.granite.reflect
Classpublic class DescribedElement
SubclassesAnnotation, Arg, DynamicProperty, Member, Parameter, Type

The root parent class of all reflection API classes. It should be abstract and, as such, it is not intented to be used standalone.



Public Properties
 PropertyDefined by
  declaredBy : Type
[read-only] The Type instance this described element belongs to.
DescribedElement
Public Methods
 MethodDefined by
  
DescribedElement(declaredBy:Type, desc:XML)
Constructs a new DescribedElement instance.
DescribedElement
  
equals(o:*):Boolean
Tells if this DescribedElement instance is equal to the supplied o parameter.
DescribedElement
  
toString():String
Returns the a string (XML) representation of this described element.
DescribedElement
Property detail
declaredByproperty
declaredBy:Type  [read-only]

The Type instance this described element belongs to.

Implementation
    public function get declaredBy():Type
Constructor detail
DescribedElement()constructor
public function DescribedElement(declaredBy:Type, desc:XML)

Constructs a new DescribedElement instance.

Parameters
declaredBy:Type — the Type that declares this element (for a Type instance, this parameter must be the Type instance itself).
 
desc:XML — the XML description of this element.

Throws
— if one of the parameter is null.
Method detail
equals()method
public function equals(o:*):Boolean

Tells if this DescribedElement instance is equal to the supplied o parameter.

Parameters
o:* — the object to check for equality.

Returns
Booleantrue if this instance is equal to the o parameter, false otherwise.
toString()method 
public function toString():String

Returns the a string (XML) representation of this described element.

Returns
String