| Package | system.reflection |
| Interface | public interface ClassInfo extends TypeInfo |
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
![]() | 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 | ||
![]() | 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 | ||
| accessors | property |
accessors:Array [read-only] List all accessors in the class.
public function get accessors():Array| constants | property |
constants:Array [read-only] List all constants in the class.
public function get constants():Array| filter | property |
filter:FilterTypeThe filter type reference of this class info.
public function get filter():FilterType public function set filter(value:FilterType):void| members | property |
members:Array [read-only] List all members in the class. Members are the combination of properties and methods.
public function get members():Array| methods | property |
methods:Array [read-only] List all methods in the class.
public function get methods():Array| name | property |
name:String [read-only] Indicates the name of the class.
public function get name():String| properties | property |
properties:Array [read-only] List all properties in the class. Properties are the combination of variables, constants and accessors.
public function get properties():Array| superClass | property |
superClass:ClassInfo [read-only] Indicates the ClassInfo object of the super class.
public function get superClass():ClassInfo| variables | property |
variables:Array [read-only] List all variables in the class.
public function get variables():Array| hasInterface | () | method |
public function hasInterface(... interfaces):BooleanIndicates if the specified class implements all interfaces passed-in arguments.
Parameters
... interfaces — All the interfaces to search in the current ClassInfo.
|
Boolean — true if the class has the specified interfaces.
|
| inheritFrom | () | method |
public function inheritFrom(... classes):BooleanIndicates if the specified class inherit fromm all class passed-in arguments.
Parameters
... classes — All the interfaces to search in the current ClassInfo.
|
Boolean — true if the class has the specified interfaces.
|
| isDynamic | () | method |
public function isDynamic():BooleanIndicates if the specified object is dynamic.
Example :
import system.Reflection ;
trace( Reflection.getClassInfo(Object).isDynamic() ) ; // true
ReturnsBoolean |
| isFinal | () | method |
public function isFinal():BooleanIndicates if the specified object is final.
Example :
import system.Reflection ;
trace( Reflection.getClassInfo(String).isFinal() ) ; // true
ReturnsBoolean |
| isInstance | () | method |
public function isInstance():BooleanIndicates if the specified object is instance.
Example :
import system.Reflection ;
trace( Reflection.getClassInfo( Array ).isInstance() ) ; // false
trace( Reflection.getClassInfo( new Array() ).isInstance() ) ; // true
ReturnsBoolean |
| isStatic | () | method |
public function isStatic():BooleanIndicates if the specified object is static.
Example :
import system.Reflection ;
trace( Reflection.getClassInfo(Math).isStatic() ) ; // true
ReturnsBoolean |
| toXML | () | method |
public function toXML():XMLReturns the XML representation of the class.
ReturnsXML — the XML representation of the class.
|