| Package | org.granite.reflect |
| Class | public class Member |
| Inheritance | Member DescribedElement |
| Implements | IAnnotatedElement, IMember |
| Subclasses | Field, Parameterizable |
Field, Method and Constructor
classes.
| Property | Defined by | ||
|---|---|---|---|
| annotations : Array [read-only]
An array that contains all annotations directly attached to this
IAnnotatedElement. | Member | ||
![]() | declaredBy : Type
The
Type instance this described element belongs to. | DescribedElement | |
| name : String [read-only]
The name of this
Member. | Member | ||
| ns : Namespace [read-only]
The namespace of this
Member. | Member | ||
| propertyKey : String [read-only]
The String representation of this member (field or method qName, key of a
dynamic property or dictionary, index of an array, etc.)
| Member | ||
| qName : QName [read-only]
The qualified name of this
Member. | Member | ||
| uri : String [read-only]
The uri of the qualified name of this
Member (members declared in
namespaces) or "" if this member is public. | Member | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructs a new
Member instance. | Member | ||
![]() |
equals(o:*):Boolean
Tells if this
DescribedElement instance is equal to the supplied
o parameter. | DescribedElement | |
|
getAnnotation(type:String, recursive:Boolean = false):Annotation
Returns the first
Annotation whose name is equal to the supplied type parameter,
attached to this IAnnotatedElement. | Member | ||
|
getAnnotations(recursive:Boolean = false, pattern:String = "^_?[^_]"):Array
Returns an array (possibly empty) that contains all annotations attached to this
IAnnotatedElement. | Member | ||
|
isAccessor():Boolean
Checks if this member is an accessor (get/set) field.
| Member | ||
|
isAnnotationPresent(type:String, recursive:Boolean = false):Boolean
Tests if an
Annotation, whose name is equal to the supplied type parameter, is attached
to this IAnnotatedElement. | Member | ||
|
isConstant():Boolean
Checks if this member is a constant field.
| Member | ||
|
isConstructor():Boolean
Checks if this member is a constructor.
| Member | ||
|
isDynamicProperty():Boolean
Checks if this member is a dynamic property (always
false for
Member, always true for DynamicProperty). | Member | ||
|
isInNamespace(ns:Namespace):Boolean
Tells if this
Member instance is declared in the the suplied ns
namespace parameter. | Member | ||
|
isMethod():Boolean
Checks if this member is a method.
| Member | ||
|
isReadable():Boolean
Checks if this member is readable (fields only).
| Member | ||
|
isStatic():Boolean
Checks if this member is static.
| Member | ||
|
isVariable():Boolean
Checks if this member is a variable field.
| Member | ||
|
isWriteable():Boolean
Checks if this member is writeable (fields only).
| Member | ||
![]() |
toString():String
Returns the a string (XML) representation of this described element.
| DescribedElement | |
| annotations | property |
annotations:Array [read-only]
An array that contains all annotations directly attached to this IAnnotatedElement.
public function get annotations():Array
| name | property |
name:String [read-only]
The name of this Member.
public function get name():String
| ns | property |
ns:Namespace [read-only]
The namespace of this Member. Note that the returned namespace
has a always a prefix equal to "" (describeType only returns the namespace uri).
public function get ns():Namespace
| propertyKey | property |
propertyKey:String [read-only]The String representation of this member (field or method qName, key of a dynamic property or dictionary, index of an array, etc.)
Implementation public function get propertyKey():String
| qName | property |
qName:QName [read-only]
The qualified name of this Member.
public function get qName():QName
| uri | property |
uri:String [read-only]
The uri of the qualified name of this Member (members declared in
namespaces) or "" if this member is public.
public function get uri():String
| Member | () | constructor |
public function Member(declaredBy:Type, desc:XML)
Constructs a new Member instance.
declaredBy:Type — the Type instance this member belongs to.
|
|
desc:XML — the XML description of the member.
|
| getAnnotation | () | method |
public function getAnnotation(type:String, recursive:Boolean = false):Annotation
Returns the first Annotation whose name is equal to the supplied type parameter,
attached to this IAnnotatedElement.
type:String — the name of the annotation to look for.
|
|
recursive:Boolean (default = false) — should we look for annotations attached to overridden elements (non-static
accessors or methods) or superclasses/superinterfaces ?
|
Annotation —
an Annotation instance or null if it cannot be found.
|
| getAnnotations | () | method |
public function getAnnotations(recursive:Boolean = false, pattern:String = "^_?[^_]"):Array
Returns an array (possibly empty) that contains all annotations attached to this
IAnnotatedElement.
recursive:Boolean (default = false) — should we look for annotations attached to overridden elements (non-static
accessors or methods) or superclasses/superinterfaces ?
|
|
pattern:String (default = "^_?[^_]") — a regexp expression used as a filter. Default is to eliminate all annotations
prefixed with a double '_' character. You may use this parameter to find all
annotations with a specific name.
|
Array — an array that contains all annotations attached to this IAnnotatedElement.
|
| isAccessor | () | method |
public function isAccessor():BooleanChecks if this member is an accessor (get/set) field.
ReturnsBoolean — true if this member is an accessor, false
otherwise.
|
| isAnnotationPresent | () | method |
public function isAnnotationPresent(type:String, recursive:Boolean = false):Boolean
Tests if an Annotation, whose name is equal to the supplied type parameter, is attached
to this IAnnotatedElement.
type:String — the name of the annotation to look for.
|
|
recursive:Boolean (default = false) — should we look for annotations attached to overridden elements (non-static
accessors or methods) or superclasses/superinterfaces ?
|
Boolean — true if the annotation can be found, false otherwise.
|
| isConstant | () | method |
public function isConstant():BooleanChecks if this member is a constant field.
ReturnsBoolean — true if this member is a constant, false
otherwise.
|
| isConstructor | () | method |
public function isConstructor():BooleanChecks if this member is a constructor.
ReturnsBoolean — true if this member is a constructor, false
otherwise.
|
| isDynamicProperty | () | method |
public function isDynamicProperty():Boolean
Checks if this member is a dynamic property (always false for
Member, always true for DynamicProperty).
Boolean — true if this member is a dynamic property, false
otherwise.
|
| isInNamespace | () | method |
public function isInNamespace(ns:Namespace):Boolean
Tells if this Member instance is declared in the the suplied ns
namespace parameter. If ns is null, this method checks if this
member is in the public namespace (uri == "") or in the builtin AS3 namespace.
Otherwise, it checks this member's uri and the ns's uri for equality.
ns:Namespace — the Namespace to check for equality with this member's
namespace.
|
Boolean — true if this member's namespace is the equal to the suplied
ns parameter, false otherwise.
|
See also
| isMethod | () | method |
public function isMethod():BooleanChecks if this member is a method.
ReturnsBoolean — true if this member is a method, false
otherwise.
|
| isReadable | () | method |
public function isReadable():BooleanChecks if this member is readable (fields only).
ReturnsBoolean — true if this member is readable, false
otherwise.
|
| isStatic | () | method |
public function isStatic():BooleanChecks if this member is static.
ReturnsBoolean — true if this member is static, false
otherwise.
|
| isVariable | () | method |
public function isVariable():BooleanChecks if this member is a variable field.
ReturnsBoolean — true if this member is a variable, false
otherwise.
|
| isWriteable | () | method |
public function isWriteable():BooleanChecks if this member is writeable (fields only).
ReturnsBoolean — true if this member is writeable, false
otherwise.
|