MethodOfValue
Overview
MethodOfValue returns a MethodInfo instance for the method specified in the constructor. This is useful to use reflection to invoke a method, or to generate Expression instances.
Location
- Reference: RemObjects.Elements.Cirrus.dll
- Namespace: RemObjects.Elements.Cirrus.Values
- Ancestry: Value | MethodOfValue
constructor
Create a new instance of this class
constructor
MethodOfValue()
init()
MethodOfValue()
Sub New()
constructor (IMethod, IType, IEnumerable<IType>)
Create a new instance of this class, the type passed is the type this method belongs to; this is required for generic types, the method parameters are the generic parameters for the method
constructor(aMethod: IMethod; aType: IType; aGenericParameters: IEnumerable<IType>)
MethodOfValue(IMethod aMethod, IType aType, IEnumerable<IType> aGenericParameters)
init(_ aMethod: IMethod, _ aType: IType, _ aGenericParameters: IEnumerable<IType>)
MethodOfValue(IMethod aMethod, IType aType, IEnumerable<IType> aGenericParameters)
Sub New(aMethod As IMethod, aType As IType, aGenericParameters As IEnumerable<IType>)
Parameters:
- aMethod: Method to refer to
- aType: Type this method is defined on
- aGenericParameters:
Binary (declared in Value)
Creates a binary value
method Binary(aOp: BinaryOperator; aOther: Value): Value
Value Binary(BinaryOperator aOp, Value aOther)
func Binary(_ aOp: BinaryOperator, _ aOther: Value) -> Value
Value Binary(BinaryOperator aOp, Value aOther)
Function Binary(aOp As BinaryOperator, aOther As Value) As Value
Parameters:
- aOp: Operator
- aOther: Right side value
GenericParameters
Gets or sets the generic parameters for this method
property GenericParameters: List<IType> read write;
List<IType> GenericParameters { get; set; }
var GenericParameters: List<IType> { get{} set{} }
List<IType> GenericParameters { __get; __set; }
Property GenericParameters() As List<IType>
creates an identifier value
Parameters:
- aName: Name of the value
creates an identifier value
Parameters:
- aName: Name of the value
- aArgs: Generic arguments.
Kind
Value kind; use this for a fast way of determining what kind of sub class a Value object is
property Kind: ValueKind read;
ValueKind Kind { get; }
var Kind: ValueKind { get{} }
ValueKind Kind { __get; }
ReadOnly Property Kind() As ValueKind
Length (declared in Value)
Creates a length value
method Length: Value
Value Length()
func Length() -> Value
Value Length()
Function Length() As Value
Method
Gets or sets the method
property Method: IMethod read write;
IMethod Method { get; set; }
var Method: IMethod { get{} set{} }
IMethod Method { __get; __set; }
Property Method() As IMethod
NotNil (declared in Value)
Creates a not nil value
method NotNil: Value
Value NotNil()
func NotNil() -> Value
Value NotNil()
Function NotNil() As Value
Position (declared in Value)
Position this value is defined at (if not set, it will be at the aspects position)
property Position: IPosition read write;
IPosition Position { get; set; }
var Position: IPosition { get{} set{} }
IPosition Position { __get; __set; }
Property Position() As IPosition
Creates a call value
Parameters:
- aName: Method name
- aGP: Generic parameters to pass
- aArgs: Arguments for this call
Creates a call value
Parameters:
- aName: Method name
- aArgs: Arguments for this call
SubArray (declared in Value)
Creates an array/property element access value
Parameters:
- aArgs: Arguments for element access
ToString
Returns the string value of this value
method ToString: String
String ToString()
func ToString() -> String
String ToString()
Function ToString() As String
Type
Gets or sets the type to get this method on
property Type: IType read write;
IType Type { get; set; }
var Type: IType { get{} set{} }
IType Type { __get; __set; }
Property Type() As IType
Unary (declared in Value)
Creates a unary value
method Unary(aOp: UnaryOperator): Value
Value Unary(UnaryOperator aOp)
func Unary(_ aOp: UnaryOperator) -> Value
Value Unary(UnaryOperator aOp)
Function Unary(aOp As UnaryOperator) As Value
Parameters:
- aOp: Operator
GenericParameters
Gets or sets the generic parameters for this method
property GenericParameters: List<IType> read write;
List<IType> GenericParameters { get; set; }
var GenericParameters: List<IType> { get{} set{} }
List<IType> GenericParameters { __get; __set; }
Property GenericParameters() As List<IType>
Kind
Value kind; use this for a fast way of determining what kind of sub class a Value object is
property Kind: ValueKind read;
ValueKind Kind { get; }
var Kind: ValueKind { get{} }
ValueKind Kind { __get; }
ReadOnly Property Kind() As ValueKind
Method
Gets or sets the method
property Method: IMethod read write;
IMethod Method { get; set; }
var Method: IMethod { get{} set{} }
IMethod Method { __get; __set; }
Property Method() As IMethod
Position (declared in Value)
Position this value is defined at (if not set, it will be at the aspects position)
property Position: IPosition read write;
IPosition Position { get; set; }
var Position: IPosition { get{} set{} }
IPosition Position { __get; __set; }
Property Position() As IPosition
Type
Gets or sets the type to get this method on
constructor
Create a new instance of this class
constructor
MethodOfValue()
init()
MethodOfValue()
Sub New()
constructor (IMethod, IType, IEnumerable<IType>)
Create a new instance of this class, the type passed is the type this method belongs to; this is required for generic types, the method parameters are the generic parameters for the method
constructor(aMethod: IMethod; aType: IType; aGenericParameters: IEnumerable<IType>)
MethodOfValue(IMethod aMethod, IType aType, IEnumerable<IType> aGenericParameters)
init(_ aMethod: IMethod, _ aType: IType, _ aGenericParameters: IEnumerable<IType>)
MethodOfValue(IMethod aMethod, IType aType, IEnumerable<IType> aGenericParameters)
Sub New(aMethod As IMethod, aType As IType, aGenericParameters As IEnumerable<IType>)
Parameters:
- aMethod: Method to refer to
- aType: Type this method is defined on
- aGenericParameters:
Binary (declared in Value)
Creates a binary value
method Binary(aOp: BinaryOperator; aOther: Value): Value
Value Binary(BinaryOperator aOp, Value aOther)
func Binary(_ aOp: BinaryOperator, _ aOther: Value) -> Value
Value Binary(BinaryOperator aOp, Value aOther)
Function Binary(aOp As BinaryOperator, aOther As Value) As Value
Parameters:
- aOp: Operator
- aOther: Right side value
creates an identifier value
Parameters:
- aName: Name of the value
creates an identifier value
Parameters:
- aName: Name of the value
- aArgs: Generic arguments.
Length (declared in Value)
Creates a length value
method Length: Value
Value Length()
func Length() -> Value
Value Length()
Function Length() As Value
NotNil (declared in Value)
Creates a not nil value
method NotNil: Value
Value NotNil()
func NotNil() -> Value
Value NotNil()
Function NotNil() As Value
Creates a call value
Parameters:
- aName: Method name
- aGP: Generic parameters to pass
- aArgs: Arguments for this call
Creates a call value
Parameters:
- aName: Method name
- aArgs: Arguments for this call
SubArray (declared in Value)
Creates an array/property element access value
Parameters:
- aArgs: Arguments for element access
ToString
Returns the string value of this value
method ToString: String
String ToString()
func ToString() -> String
String ToString()
Function ToString() As String
Unary (declared in Value)
Creates a unary value
method Unary(aOp: UnaryOperator): Value
Value Unary(UnaryOperator aOp)
func Unary(_ aOp: UnaryOperator) -> Value
Value Unary(UnaryOperator aOp)
Function Unary(aOp As UnaryOperator) As Value
Parameters:
- aOp: Operator