Method
Overview
Wrapper around reflection for methods.
Location
-
Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL.Reflection
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee
-
Mapped to:
- MethodInfo .NET, .NET Core 6.0, .NET Standard 2.0
- Method Cooper
- MethodInfo Island
constructor Toffee
Instantiate with a type.
init(withClass aClass: Type, method aMethod: Method)
Parameters:
- aClass:
- aMethod:
DeclaringType virtual
property DeclaringType: Type read;
Type DeclaringType { get; }
var DeclaringType: Type { get{} }
Type DeclaringType { __get; }
ReadOnly Property DeclaringType() As Type
Invoke virtual
Invoke this method given an instance and arguments. Instance shold be null for static methods.
Parameters:
- aInstance:
- aArgs:
IsAbstract virtual
Returns true if this method is abstract.
property IsAbstract: Boolean read;
Boolean IsAbstract { get; }
var IsAbstract: Boolean { get{} }
Boolean IsAbstract { __get; }
ReadOnly Property IsAbstract() As Boolean
IsFinal virtual
Returns true if this method is final (cannot be overridden); only applicable on .NET and Island.
property IsFinal: Boolean read;
Boolean IsFinal { get; }
var IsFinal: Boolean { get{} }
Boolean IsFinal { __get; }
ReadOnly Property IsFinal() As Boolean
IsPrivate virtual .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Toffee
Returns true if this method is private.
property IsPrivate: Boolean read;
Boolean IsPrivate { get; }
var IsPrivate: Boolean { get{} }
Boolean IsPrivate { __get; }
ReadOnly Property IsPrivate() As Boolean
IsPublic virtual .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Toffee
Returns true if this method is public.
property IsPublic: Boolean read;
Boolean IsPublic { get; }
var IsPublic: Boolean { get{} }
Boolean IsPublic { __get; }
ReadOnly Property IsPublic() As Boolean
IsStatic virtual
Returns true if this method is static.
property IsStatic: Boolean read;
Boolean IsStatic { get; }
var IsStatic: Boolean { get{} }
Boolean IsStatic { __get; }
ReadOnly Property IsStatic() As Boolean
Name virtual
Returns the name of this method. Note that the name of constructors can be <init> (java) .ctor (.NET/Island) or start with init on Toffee.
property Name: String read;
String Name { get; }
var Name: String { get{} }
String Name { __get; }
ReadOnly Property Name() As String
Parameters virtual .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Toffee
Returns the parameters for this method.
property Parameters: array of Parameter read;
Parameter[] Parameters { get; }
var Parameters: Parameter... { get{} }
Parameter[] Parameters { __get; }
ReadOnly Property Parameters() As Parameter()
Pointer virtual Toffee
Gets the address of this method, only available on native targets.
var Pointer: Method { get{} }
ReturnType virtual
Returns the return type of this method.
property ReturnType: Type read;
Type ReturnType { get; }
var ReturnType: Type { get{} }
Type ReturnType { __get; }
ReadOnly Property ReturnType() As Type
Selector virtual Toffee
Returns a selector for this method; selectors are the internal name by which Cocoa invokes this method.
var Selector: SEL { get{} }
Visibility Island
property Visibility: Visibility read;
Visibility Visibility { get; }
var Visibility: Visibility { get{} }
ReadOnly Property Visibility() As Visibility
Visibility .NET, .NET Core 6.0, .NET Standard 2.0
property Visibility: Visibility read;
Visibility Visibility { get; }
var Visibility: Visibility { get{} }
ReadOnly Property Visibility() As Visibility
DeclaringType virtual
property DeclaringType: Type read;
Type DeclaringType { get; }
var DeclaringType: Type { get{} }
Type DeclaringType { __get; }
ReadOnly Property DeclaringType() As Type
IsAbstract virtual
Returns true if this method is abstract.
property IsAbstract: Boolean read;
Boolean IsAbstract { get; }
var IsAbstract: Boolean { get{} }
Boolean IsAbstract { __get; }
ReadOnly Property IsAbstract() As Boolean
IsFinal virtual
Returns true if this method is final (cannot be overridden); only applicable on .NET and Island.
property IsFinal: Boolean read;
Boolean IsFinal { get; }
var IsFinal: Boolean { get{} }
Boolean IsFinal { __get; }
ReadOnly Property IsFinal() As Boolean
IsPrivate virtual .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Toffee
Returns true if this method is private.
property IsPrivate: Boolean read;
Boolean IsPrivate { get; }
var IsPrivate: Boolean { get{} }
Boolean IsPrivate { __get; }
ReadOnly Property IsPrivate() As Boolean
IsPublic virtual .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Toffee
Returns true if this method is public.
property IsPublic: Boolean read;
Boolean IsPublic { get; }
var IsPublic: Boolean { get{} }
Boolean IsPublic { __get; }
ReadOnly Property IsPublic() As Boolean
IsStatic virtual
Returns true if this method is static.
property IsStatic: Boolean read;
Boolean IsStatic { get; }
var IsStatic: Boolean { get{} }
Boolean IsStatic { __get; }
ReadOnly Property IsStatic() As Boolean
Name virtual
Returns the name of this method. Note that the name of constructors can be <init> (java) .ctor (.NET/Island) or start with init on Toffee.
property Name: String read;
String Name { get; }
var Name: String { get{} }
String Name { __get; }
ReadOnly Property Name() As String
Parameters virtual .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Toffee
Returns the parameters for this method.
property Parameters: array of Parameter read;
Parameter[] Parameters { get; }
var Parameters: Parameter... { get{} }
Parameter[] Parameters { __get; }
ReadOnly Property Parameters() As Parameter()
Pointer virtual Toffee
Gets the address of this method, only available on native targets.
var Pointer: Method { get{} }
ReturnType virtual
Returns the return type of this method.
property ReturnType: Type read;
Type ReturnType { get; }
var ReturnType: Type { get{} }
Type ReturnType { __get; }
ReadOnly Property ReturnType() As Type
Selector virtual Toffee
Returns a selector for this method; selectors are the internal name by which Cocoa invokes this method.
var Selector: SEL { get{} }
Visibility Island
property Visibility: Visibility read;
Visibility Visibility { get; }
var Visibility: Visibility { get{} }
ReadOnly Property Visibility() As Visibility
Visibility .NET, .NET Core 6.0, .NET Standard 2.0
property Visibility: Visibility read;
Visibility Visibility { get; }
var Visibility: Visibility { get{} }
ReadOnly Property Visibility() As Visibility
constructor Toffee
Instantiate with a type.
init(withClass aClass: Type, method aMethod: Method)
Parameters:
- aClass:
- aMethod:
Invoke virtual
Invoke this method given an instance and arguments. Instance shold be null for static methods.
Parameters:
- aInstance:
- aArgs: