WithItem

Overview

WithItem is a storage class used by WithStatement to define variables, their types and the initial value a with statement is used on.

Location


 

constructor

Create a new instance of this class

 

constructor

 

WithItem()

 

init()

 

WithItem()

 

Sub New()

constructor (String, IType, Value, Boolean)

Create a new instance of this class

 

constructor(aName: String; aType: IType; aValue: Value; aMatching: Boolean)

 

WithItem(String aName, IType aType, Value aValue, Boolean aMatching)

 

init(_ aName: String, _ aType: IType, _ aValue: Value, _ aMatching: Boolean)

 

WithItem(String aName, IType aType, Value aValue, Boolean aMatching)

 

Sub New(aName As String, aType As IType, aValue As Value, aMatching As Boolean)

Parameters:

  • aName: Name of the with, optional
  • aType: type of the with, if not set it's inferred
  • aValue: value for this with item
  • aMatching: if true, only runs if the value is <> nil and of that type

Matching

Only run the with if the value is not nil

 

property Matching: Boolean read write;

 

Boolean Matching { get; set; }

 

var Matching: Boolean { get{} set{} }

 

Boolean Matching { __get; __set; }

 

Property Matching() As Boolean

Name

Local variable name of this with item

 

property Name: String read write;

 

String Name { get; set; }

 

var Name: String { get{} set{} }

 

String Name { __get; __set; }

 

Property Name() As String

Type

Type of this with item

 

property Type: IType read write;

 

IType Type { get; set; }

 

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

 

IType Type { __get; __set; }

 

Property Type() As IType

Value

Value

 

property Value: Value read write;

 

Value Value { get; set; }

 

var Value: Value { get{} set{} }

 

Value Value { __get; __set; }

 

Property Value() As Value

 

Matching

Only run the with if the value is not nil

 

property Matching: Boolean read write;

 

Boolean Matching { get; set; }

 

var Matching: Boolean { get{} set{} }

 

Boolean Matching { __get; __set; }

 

Property Matching() As Boolean

Name

Local variable name of this with item

 

property Name: String read write;

 

String Name { get; set; }

 

var Name: String { get{} set{} }

 

String Name { __get; __set; }

 

Property Name() As String

Type

Type of this with item

 

property Type: IType read write;

 

IType Type { get; set; }

 

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

 

IType Type { __get; __set; }

 

Property Type() As IType

Value

Value

 

property Value: Value read write;

 

Value Value { get; set; }

 

var Value: Value { get{} set{} }

 

Value Value { __get; __set; }

 

Property Value() As Value

 

constructor

Create a new instance of this class

 

constructor

 

WithItem()

 

init()

 

WithItem()

 

Sub New()

constructor (String, IType, Value, Boolean)

Create a new instance of this class

 

constructor(aName: String; aType: IType; aValue: Value; aMatching: Boolean)

 

WithItem(String aName, IType aType, Value aValue, Boolean aMatching)

 

init(_ aName: String, _ aType: IType, _ aValue: Value, _ aMatching: Boolean)

 

WithItem(String aName, IType aType, Value aValue, Boolean aMatching)

 

Sub New(aName As String, aType As IType, aValue As Value, aMatching As Boolean)

Parameters:

  • aName: Name of the with, optional
  • aType: type of the with, if not set it's inferred
  • aValue: value for this with item
  • aMatching: if true, only runs if the value is <> nil and of that type