Packagesystem.reflection
Interfacepublic interface ClassInfo extends TypeInfo

This interface defines the object who indicates all informations about a class in the reflection pattern of system.



Public Properties
 PropertyDefined By
  accessors : Array
[read-only] List all accessors in the class.
ClassInfo
  constants : Array
[read-only] List all constants in the class.
ClassInfo
  filter : FilterType
The filter type reference of this class info.
ClassInfo
  members : Array
[read-only] List all members in the class.
ClassInfo
  methods : Array
[read-only] List all methods in the class.
ClassInfo
  name : String
[read-only] Indicates the name of the class.
ClassInfo
  properties : Array
[read-only] List all properties in the class.
ClassInfo
  superClass : ClassInfo
[read-only] Indicates the ClassInfo object of the super class.
ClassInfo
  variables : Array
[read-only] List all variables in the class.
ClassInfo
Public Methods
 MethodDefined By
 Inherited
canConvertTo(o:Class):Boolean
Indicates if the specified Class object can be convert to an other with the "as" keyword.
TypeInfo
  
hasInterface(... interfaces):Boolean
Indicates if the specified class implements all interfaces passed-in arguments.
ClassInfo
  
inheritFrom(... classes):Boolean
Indicates if the specified class inherit fromm all class passed-in arguments.
ClassInfo
  
isDynamic():Boolean
Indicates if the specified object is dynamic.
ClassInfo
  
isFinal():Boolean
Indicates if the specified object is final.
ClassInfo
  
isInstance():Boolean
Indicates if the specified object is instance.
ClassInfo
  
isStatic():Boolean
Indicates if the specified object is static.
ClassInfo
 Inherited
isSubtypeOf(o:Class):Boolean
Indicates if the specified Class object be used with the "is" keyword.
TypeInfo
  
toXML():XML
Returns the XML representation of the class.
ClassInfo
Property Detail
accessorsproperty
accessors:Array  [read-only]

List all accessors in the class.


Implementation
    public function get accessors():Array
constantsproperty 
constants:Array  [read-only]

List all constants in the class.


Implementation
    public function get constants():Array
filterproperty 
filter:FilterType

The filter type reference of this class info.


Implementation
    public function get filter():FilterType
    public function set filter(value:FilterType):void
membersproperty 
members:Array  [read-only]

List all members in the class. Members are the combination of properties and methods.


Implementation
    public function get members():Array
methodsproperty 
methods:Array  [read-only]

List all methods in the class.


Implementation
    public function get methods():Array
nameproperty 
name:String  [read-only]

Indicates the name of the class.


Implementation
    public function get name():String
propertiesproperty 
properties:Array  [read-only]

List all properties in the class. Properties are the combination of variables, constants and accessors.


Implementation
    public function get properties():Array
superClassproperty 
superClass:ClassInfo  [read-only]

Indicates the ClassInfo object of the super class.


Implementation
    public function get superClass():ClassInfo
variablesproperty 
variables:Array  [read-only]

List all variables in the class.


Implementation
    public function get variables():Array
Method Detail
hasInterface()method
public function hasInterface(... interfaces):Boolean

Indicates if the specified class implements all interfaces passed-in arguments.

Parameters

... interfaces — All the interfaces to search in the current ClassInfo.

Returns
Booleantrue if the class has the specified interfaces.
inheritFrom()method 
public function inheritFrom(... classes):Boolean

Indicates if the specified class inherit fromm all class passed-in arguments.

Parameters

... classes — All the interfaces to search in the current ClassInfo.

Returns
Booleantrue if the class has the specified interfaces.
isDynamic()method 
public function isDynamic():Boolean

Indicates if the specified object is dynamic.

Example :

         import system.Reflection ;
         trace( Reflection.getClassInfo(Object).isDynamic() ) ; // true
         

Returns
Boolean
isFinal()method 
public function isFinal():Boolean

Indicates if the specified object is final.

Example :

         import system.Reflection ;
         trace( Reflection.getClassInfo(String).isFinal() ) ; // true
         

Returns
Boolean
isInstance()method 
public function isInstance():Boolean

Indicates if the specified object is instance.

Example :

         import system.Reflection ;
         
         trace( Reflection.getClassInfo( Array ).isInstance() ) ; // false
         trace( Reflection.getClassInfo( new Array() ).isInstance() ) ; // true
         

Returns
Boolean
isStatic()method 
public function isStatic():Boolean

Indicates if the specified object is static.

Example :

         import system.Reflection ;
         trace( Reflection.getClassInfo(Math).isStatic() ) ; // true
         

Returns
Boolean
toXML()method 
public function toXML():XML

Returns the XML representation of the class.

Returns
XML — the XML representation of the class.