NewValue

Overview

NewValue is a value class used to instantiate a new instance of a class. When you create a new instance, make sure the type passed is a closed generic type, one with all its generic parameters filled in.

Location


 

constructor

Create a new instance of this class

 

constructor

 

NewValue()

 

init()

 

NewValue()

 

Sub New()

constructor (IType)

Create a new instance of this class

 

constructor(aType: IType)

 

NewValue(IType aType)

 

init(_ aType: IType)

 

NewValue(IType aType)

 

Sub New(aType As IType)

Parameters:

  • aType: Type to instantiate

constructor (IType, array of Value, array of KeyValuePair<String, Value>)

Create a new instance of this class

 

constructor(aType: IType; aParameters: array of Value; aNamedParameters: array of KeyValuePair<String, Value>)

 

NewValue(IType aType, Value[] aParameters, KeyValuePair<String, Value>[] aNamedParameters)

 

init(_ aType: IType, _ aParameters: Value..., _ aNamedParameters: KeyValuePair<String, Value>...)

 

NewValue(IType aType, Value[] aParameters, KeyValuePair<String, Value>[] aNamedParameters)

 

Sub New(aType As IType, aParameters As Value(), aNamedParameters As KeyValuePair<String, Value>())

Parameters:

  • aType: Type to instantiate
  • aParameters: Parameters to pass to the constructor
  • aNamedParameters: Named parameters to pass to the constructor

constructor (IType, array of Value, array of KeyValuePair<String, Value>, array of String)

 

constructor(aType: IType; aParameters: array of Value; aNamedParameters: array of KeyValuePair<String, Value>; aSelectorNames: array of String)

 

NewValue(IType aType, Value[] aParameters, KeyValuePair<String, Value>[] aNamedParameters, String[] aSelectorNames)

 

init(_ aType: IType, _ aParameters: Value..., _ aNamedParameters: KeyValuePair<String, Value>..., _ aSelectorNames: String...)

 

NewValue(IType aType, Value[] aParameters, KeyValuePair<String, Value>[] aNamedParameters, String[] aSelectorNames)

 

Sub New(aType As IType, aParameters As Value(), aNamedParameters As KeyValuePair<String, Value>(), aSelectorNames As String())

Parameters:

  • aType:
  • aParameters:
  • aNamedParameters:
  • aSelectorNames:

constructor (IType, array of Value)

Create a new instance of this class

 

constructor(aType: IType; params aParameters: array of Value)

 

NewValue(IType aType, params Value[] aParameters)

 

init(_ aType: IType, _ aParameters: Value...)

 

NewValue(IType aType, Value[]... aParameters)

 

Sub New(aType As IType, ParamArray aParameters As Value())

Parameters:

  • aType: Type to instantiate
  • aParameters: Parameters to pass to the constructor

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

Identifier (String): Value    (declared in Value)

creates an identifier value

 

method Identifier(aName: String): Value

 

Value Identifier(String aName)

 

func Identifier(_ aName: String) -> Value

 

Value Identifier(String aName)

 

Function Identifier(aName As String) As Value

Parameters:

  • aName: Name of the value

Identifier (String, array of IType): Value    (declared in Value)

creates an identifier value

 

method Identifier(aName: String; aArgs: array of IType): Value

 

Value Identifier(String aName, IType[] aArgs)

 

func Identifier(_ aName: String, _ aArgs: IType...) -> Value

 

Value Identifier(String aName, IType[] aArgs)

 

Function Identifier(aName As String, aArgs As IType()) As 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

NamedArguments

Named parameters to pass after calling the constructor

 

property NamedArguments: array of KeyValuePair<String, Value> read write;

 

KeyValuePair<String, Value>[] NamedArguments { get; set; }

 

var NamedArguments: KeyValuePair<String, Value>... { get{} set{} }

 

KeyValuePair<String, Value>[] NamedArguments { __get; __set; }

 

Property NamedArguments() As KeyValuePair<String, Value>()

NotNil    (declared in Value)

Creates a not nil value

 

method NotNil: Value

 

Value NotNil()

 

func NotNil() -> Value

 

Value NotNil()

 

Function NotNil() As Value

Parameters    (declared in ParameterizedValue)

The parameters for this value

 

property Parameters: List<Value> read;

 

List<Value> Parameters { get; }

 

var Parameters: List<Value> { get{} }

 

List<Value> Parameters { __get; }

 

ReadOnly Property Parameters() As List<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

Proc (String, array of IType, array of Value): Value    (declared in Value)

Creates a call value

 

method Proc(aName: String; aGP: array of IType; params aArgs: array of Value): Value

 

Value Proc(String aName, IType[] aGP, params Value[] aArgs)

 

func Proc(_ aName: String, _ aGP: IType..., _ aArgs: Value...) -> Value

 

Value Proc(String aName, IType[] aGP, Value[]... aArgs)

 

Function Proc(aName As String, aGP As IType(), ParamArray aArgs As Value()) As Value

Parameters:

  • aName: Method name
  • aGP: Generic parameters to pass
  • aArgs: Arguments for this call

Proc (String, array of Value): Value    (declared in Value)

Creates a call value

 

method Proc(aName: String; params aArgs: array of Value): Value

 

Value Proc(String aName, params Value[] aArgs)

 

func Proc(_ aName: String, _ aArgs: Value...) -> Value

 

Value Proc(String aName, Value[]... aArgs)

 

Function Proc(aName As String, ParamArray aArgs As Value()) As Value

Parameters:

  • aName: Method name
  • aArgs: Arguments for this call

SelectorNames

 

property SelectorNames: array of String read write;

 

String[] SelectorNames { get; set; }

 

var SelectorNames: String... { get{} set{} }

 

String[] SelectorNames { __get; __set; }

 

Property SelectorNames() As String()

SubArray    (declared in Value)

Creates an array/property element access value

 

method SubArray(params aArgs: array of Value): Value

 

Value SubArray(params Value[] aArgs)

 

func SubArray(_ aArgs: Value...) -> Value

 

Value SubArray(Value[]... aArgs)

 

Function SubArray(ParamArray aArgs As Value()) As 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 instantiate

 

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

 

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

NamedArguments

Named parameters to pass after calling the constructor

 

property NamedArguments: array of KeyValuePair<String, Value> read write;

 

KeyValuePair<String, Value>[] NamedArguments { get; set; }

 

var NamedArguments: KeyValuePair<String, Value>... { get{} set{} }

 

KeyValuePair<String, Value>[] NamedArguments { __get; __set; }

 

Property NamedArguments() As KeyValuePair<String, Value>()

Parameters    (declared in ParameterizedValue)

The parameters for this value

 

property Parameters: List<Value> read;

 

List<Value> Parameters { get; }

 

var Parameters: List<Value> { get{} }

 

List<Value> Parameters { __get; }

 

ReadOnly Property Parameters() As List<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

SelectorNames

 

property SelectorNames: array of String read write;

 

String[] SelectorNames { get; set; }

 

var SelectorNames: String... { get{} set{} }

 

String[] SelectorNames { __get; __set; }

 

Property SelectorNames() As String()

Type

Gets or sets the type to instantiate

 

property Type: IType read write;

 

IType Type { get; set; }

 

var Type: IType { get{} set{} }

 

IType Type { __get; __set; }

 

Property Type() As IType

 

constructor

Create a new instance of this class

 

constructor

 

NewValue()

 

init()

 

NewValue()

 

Sub New()

constructor (IType)

Create a new instance of this class

 

constructor(aType: IType)

 

NewValue(IType aType)

 

init(_ aType: IType)

 

NewValue(IType aType)

 

Sub New(aType As IType)

Parameters:

  • aType: Type to instantiate

constructor (IType, array of Value, array of KeyValuePair<String, Value>)

Create a new instance of this class

 

constructor(aType: IType; aParameters: array of Value; aNamedParameters: array of KeyValuePair<String, Value>)

 

NewValue(IType aType, Value[] aParameters, KeyValuePair<String, Value>[] aNamedParameters)

 

init(_ aType: IType, _ aParameters: Value..., _ aNamedParameters: KeyValuePair<String, Value>...)

 

NewValue(IType aType, Value[] aParameters, KeyValuePair<String, Value>[] aNamedParameters)

 

Sub New(aType As IType, aParameters As Value(), aNamedParameters As KeyValuePair<String, Value>())

Parameters:

  • aType: Type to instantiate
  • aParameters: Parameters to pass to the constructor
  • aNamedParameters: Named parameters to pass to the constructor

constructor (IType, array of Value, array of KeyValuePair<String, Value>, array of String)

 

constructor(aType: IType; aParameters: array of Value; aNamedParameters: array of KeyValuePair<String, Value>; aSelectorNames: array of String)

 

NewValue(IType aType, Value[] aParameters, KeyValuePair<String, Value>[] aNamedParameters, String[] aSelectorNames)

 

init(_ aType: IType, _ aParameters: Value..., _ aNamedParameters: KeyValuePair<String, Value>..., _ aSelectorNames: String...)

 

NewValue(IType aType, Value[] aParameters, KeyValuePair<String, Value>[] aNamedParameters, String[] aSelectorNames)

 

Sub New(aType As IType, aParameters As Value(), aNamedParameters As KeyValuePair<String, Value>(), aSelectorNames As String())

Parameters:

  • aType:
  • aParameters:
  • aNamedParameters:
  • aSelectorNames:

constructor (IType, array of Value)

Create a new instance of this class

 

constructor(aType: IType; params aParameters: array of Value)

 

NewValue(IType aType, params Value[] aParameters)

 

init(_ aType: IType, _ aParameters: Value...)

 

NewValue(IType aType, Value[]... aParameters)

 

Sub New(aType As IType, ParamArray aParameters As Value())

Parameters:

  • aType: Type to instantiate
  • aParameters: Parameters to pass to the constructor

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

Identifier (String): Value    (declared in Value)

creates an identifier value

 

method Identifier(aName: String): Value

 

Value Identifier(String aName)

 

func Identifier(_ aName: String) -> Value

 

Value Identifier(String aName)

 

Function Identifier(aName As String) As Value

Parameters:

  • aName: Name of the value

Identifier (String, array of IType): Value    (declared in Value)

creates an identifier value

 

method Identifier(aName: String; aArgs: array of IType): Value

 

Value Identifier(String aName, IType[] aArgs)

 

func Identifier(_ aName: String, _ aArgs: IType...) -> Value

 

Value Identifier(String aName, IType[] aArgs)

 

Function Identifier(aName As String, aArgs As IType()) As 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

Proc (String, array of IType, array of Value): Value    (declared in Value)

Creates a call value

 

method Proc(aName: String; aGP: array of IType; params aArgs: array of Value): Value

 

Value Proc(String aName, IType[] aGP, params Value[] aArgs)

 

func Proc(_ aName: String, _ aGP: IType..., _ aArgs: Value...) -> Value

 

Value Proc(String aName, IType[] aGP, Value[]... aArgs)

 

Function Proc(aName As String, aGP As IType(), ParamArray aArgs As Value()) As Value

Parameters:

  • aName: Method name
  • aGP: Generic parameters to pass
  • aArgs: Arguments for this call

Proc (String, array of Value): Value    (declared in Value)

Creates a call value

 

method Proc(aName: String; params aArgs: array of Value): Value

 

Value Proc(String aName, params Value[] aArgs)

 

func Proc(_ aName: String, _ aArgs: Value...) -> Value

 

Value Proc(String aName, Value[]... aArgs)

 

Function Proc(aName As String, ParamArray aArgs As Value()) As Value

Parameters:

  • aName: Method name
  • aArgs: Arguments for this call

SubArray    (declared in Value)

Creates an array/property element access value

 

method SubArray(params aArgs: array of Value): Value

 

Value SubArray(params Value[] aArgs)

 

func SubArray(_ aArgs: Value...) -> Value

 

Value SubArray(Value[]... aArgs)

 

Function SubArray(ParamArray aArgs As Value()) As 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