Method

Overview

Wrapper around reflection for methods.

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • Elements.fx  Island
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL.Reflection
  • Platforms: .NET, .NET Standard 2.0, Island, Toffee
  • Mapped to:
    • MethodInfo  .NET, .NET Standard 2.0
    • 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{} }

 

ReadOnly Property DeclaringType() As Type

Invoke  virtual Toffee

Invoke this method given an instance and arguments. Instance shold be null for static methods.

 

func Invoke(_ aInstance: Object, _ aArgs: Object...) -> Object

Parameters:

  • aInstance:
  • aArgs:

IsAbstract  virtual

Returns true if this method is abstract.

 

property IsAbstract: Boolean read;

 

Boolean IsAbstract { get; }

 

var IsAbstract: Boolean { 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{} }

 

ReadOnly Property IsFinal() As Boolean

IsPrivate  virtual .NET, .NET Standard 2.0, Toffee

Returns true if this method is private.

 

property IsPrivate: Boolean read;

 

Boolean IsPrivate { get; }

 

var IsPrivate: Boolean { get{} }

 

ReadOnly Property IsPrivate() As Boolean

IsPublic  virtual .NET, .NET Standard 2.0, Toffee

Returns true if this method is public.

 

property IsPublic: Boolean read;

 

Boolean IsPublic { get; }

 

var IsPublic: Boolean { 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{} }

 

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{} }

 

ReadOnly Property Name() As String

Parameters  virtual .NET, .NET Standard 2.0, Toffee

Returns the parameters for this method.

 

property Parameters: array of Parameter read;

 

Parameter[] Parameters { get; }

 

var Parameters: Parameter... { 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{} }

 

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 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{} }

 

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{} }

 

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{} }

 

ReadOnly Property IsFinal() As Boolean

IsPrivate  virtual .NET, .NET Standard 2.0, Toffee

Returns true if this method is private.

 

property IsPrivate: Boolean read;

 

Boolean IsPrivate { get; }

 

var IsPrivate: Boolean { get{} }

 

ReadOnly Property IsPrivate() As Boolean

IsPublic  virtual .NET, .NET Standard 2.0, Toffee

Returns true if this method is public.

 

property IsPublic: Boolean read;

 

Boolean IsPublic { get; }

 

var IsPublic: Boolean { 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{} }

 

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{} }

 

ReadOnly Property Name() As String

Parameters  virtual .NET, .NET Standard 2.0, Toffee

Returns the parameters for this method.

 

property Parameters: array of Parameter read;

 

Parameter[] Parameters { get; }

 

var Parameters: Parameter... { 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{} }

 

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 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 Toffee

Invoke this method given an instance and arguments. Instance shold be null for static methods.

 

func Invoke(_ aInstance: Object, _ aArgs: Object...) -> Object

Parameters:

  • aInstance:
  • aArgs: