MethodInfo
private class
system.reflection.MethodInfo
Description
Represents information about a Method on a Type.
API overview
Constructor
MethodInfo
()
Constructor
MethodInfo ()
Functions
getDeclaringType
(): Type
Inherited from MemberInfo
native
Gets the Type that the MemberInfo belongs to.
Returns
| Type | Type that the member info belongs to. |
getFullTypeName
(): String
Inherited from Object
native
Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.
Returns
| String | fully qualified type name of the Object. |
getMemberType
(): Type
Inherited from MemberInfo
native
Gets the Type of the Member for example getMemberInfo on:
public var x:Number;
would return the System.Number type
Returns
| Type | Type of the member declaration |
getMetaInfo
(
name: String
): MetaInfo
Inherited from MemberInfo
native
Gets the MetaInfo for the specified Metadata tag name.
Parameters
| name: String | Name of the metadata tag to lookup. |
Returns
| MetaInfo | MetaInfo for the specified Metadata tag name, null if the name does not exist on the MemberInfo. |
getName
(): String
Inherited from MemberInfo
native
Gets the name of the MemberInfo.
Returns
| String | Name of the MemberInfo. |
getNumParameters
(): Number
Inherited from MethodBase
native
Gets the number of parameters in the MethodBase.
Returns
| Number | Number of parameters in the MethodBase. |
getOrdinal
(): Number
Inherited from MemberInfo
native
Gets the native ordinal for a MemberInfo.
Returns
| Number | 0 for no native ordinal, otherwise the native ordinal. |
getParameter
(
idx: Number
): ParameterInfo
Inherited from MethodBase
native
Gets the associated ParameterInfo at the specified index.
Parameters
| idx: Number | Index of associated ParameterInfo. |
Returns
| ParameterInfo | Instance of the associated ParameterInfo. |
getType
(): Type
Inherited from Object
native
Gets the Type that describes the Object.
Returns
| Type | The Type that describes the object. |
getTypeInfo
(): Type
Inherited from MemberInfo
native
Returns the Type that represents the type that the member is or returns.
Returns
| Type | Type info for MemberInfos type. |
getTypeName
(): String
Inherited from Object
native
Gets the type name of the Object.
Returns
| String | type name of the Object. |
invoke ( obj: Object , args: Vector.<Object> ): Void
native
Calls the represented method on the specified object.
Parameters
| obj: Object | Target that contains the method represented in the MethodInfo. |
| args: Vector.<Object> | Arbitrary list of values to take as the parameters in calling the method. |
invokeSingle ( obj: Object , arg: Object ): Void
native
Calls the represented method on the specified object.
require a varargs Vector to be created.
Parameters
| obj: Object | Target that contains the method represented in the MethodInfo. |
| arg: Object | A single argument which makes invokeSingle considerably faster to call as it doesn't |
isConstructor
(): Boolean
Inherited from MethodBase
native
Indicates whether the Method is a Constructor.
isNative
(): Boolean
Inherited from MethodBase
native
Indicates whether the Method is Native or not.
isOperator
(): Boolean
Inherited from MethodBase
native
Indicates whether the Method is an Operator.
isPrivate
(): Boolean
Inherited from MethodBase
native
Indicates whether the Method is Private or not.
isProtected
(): Boolean
Inherited from MethodBase
native
Indicates whether the Method is Protected or not.
isPublic
(): Boolean
Inherited from MethodBase
native
Indicates whether the Method is Public or not.
isStatic
(): Boolean
Inherited from MethodBase
native
Indicates whether the Method is Static or not.