CaseItem

Overview

CaseItem is a storage class to hold a single case item block, a combination of 1 or more values with a statement. All case statements are made up of 1 or more instances of this class. To pass ranges, use the RangeValue as a value.

Location

Properties


Body

The body

 

property Body: Statement read write;

 

Statement Body { get; set; }

 

var Body: Statement { get{} set{} }

 

Statement Body { __get; __set; }

 

Property Body() As Statement

Values

Possible values

 

property Values: List<Value> read;

 

List<Value> Values { get; }

 

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

 

List<Value> Values { __get; }

 

ReadOnly Property Values() As List<Value>

Instance Methods


constructor

Constructor that does not initialize any fields.

 

constructor

 

CaseItem()

 

init()

 

CaseItem()

 

Sub New()

constructor (Statement, Value)

Initializer constructor; this constructor allows you to pass a single value

 

constructor(abody: Statement; aValue: Value)

 

CaseItem(Statement abody, Value aValue)

 

init(_ abody: Statement, _ aValue: Value)

 

CaseItem(Statement abody, Value aValue)

 

Sub New(abody As Statement, aValue As Value)

Parameters:

  • abody: Body of this case element
  • aValue: case value

constructor (Statement, array of Value)

Initializer constructor; this constructor allows you to pass multiple values

 

constructor(abody: Statement; params aValues: array of Value)

 

CaseItem(Statement abody, params Value[] aValues)

 

init(_ abody: Statement, _ aValues: Value...)

 

CaseItem(Statement abody, Value[]... aValues)

 

Sub New(abody As Statement, ParamArray aValues As Value())

Parameters:

  • abody: Body for this case item.
  • aValues: Values for this case item.