BreakStatement
Overview
This class is used to break out of an iteration of a loop. This statement breaks out of the most inner loop it's placed in. It works for all for, for in, while, loop and repeat loops.
Location
- Reference: RemObjects.Elements.Cirrus.dll
- Namespace: RemObjects.Elements.Cirrus.Statements
- Ancestry: Statement | BreakStatement
Constructor that does not initialize any fields.
constructorBreakStatement()init()BreakStatement()Sub New()Converts a statement to a string.
method BuildStatement(anIndent: Int32; sb: StringBuilder)void BuildStatement(Int32 anIndent, StringBuilder sb)func BuildStatement( anIndent: Int32, sb: StringBuilder)void BuildStatement(Int32 anIndent, StringBuilder sb)Sub BuildStatement(anIndent As Int32, sb As StringBuilder)Parameters:
- anIndent: The nr of spaces to place before the start of this statement.
- sb: Output string builder.
Returns what kind of statement this is; this can be used to find out if a statement is of a specific type without having to check all possible casts
property Kind: StatementKind read;StatementKind Kind { get; }var Kind: StatementKind { get{} }StatementKind Kind { __get; }ReadOnly Property Kind() As StatementKindOverflow checking for binary and unary operations in this statement
property OverflowCheck: Boolean read write;Boolean OverflowCheck { get; set; }var OverflowCheck: Boolean { get{} set{} }Boolean OverflowCheck { get; set; }Property OverflowCheck() As BooleanPosition this statement is defined at
property Position: IPosition read write;IPosition Position { get; set; }var Position: IPosition { get{} set{} }IPosition Position { get; set; }Property Position() As IPositionRecursively sets the OverflowCheck flag
method SetOverflowCheckRecursive(value: Boolean)void SetOverflowCheckRecursive(Boolean value)func SetOverflowCheckRecursive(_ value: Boolean)void SetOverflowCheckRecursive(Boolean value)Sub SetOverflowCheckRecursive(value As Boolean)Parameters:
- value: new value
Returns this statement as a string
method ToString: StringString ToString()func ToString() -> StringString ToString()Function ToString() As StringConverts this statement to a value tree that creates these statements
method ToValue(aServicesParameter: Value; aServices: IServices): ValueValue ToValue(Value aServicesParameter, IServices aServices)func ToValue( aServicesParameter: Value, aServices: IServices) -> ValueValue ToValue(Value aServicesParameter, IServices aServices)Function ToValue(aServicesParameter As Value, aServices As IServices) As ValueParameters:
- aServicesParameter: the value that contains where aServices is stored
- aServices: Actual services instance.
Returns what kind of statement this is; this can be used to find out if a statement is of a specific type without having to check all possible casts
property Kind: StatementKind read;StatementKind Kind { get; }var Kind: StatementKind { get{} }StatementKind Kind { __get; }ReadOnly Property Kind() As StatementKindOverflow checking for binary and unary operations in this statement
property OverflowCheck: Boolean read write;Boolean OverflowCheck { get; set; }var OverflowCheck: Boolean { get{} set{} }Boolean OverflowCheck { get; set; }Property OverflowCheck() As BooleanPosition this statement is defined at
property Position: IPosition read write;IPosition Position { get; set; }var Position: IPosition { get{} set{} }IPosition Position { get; set; }Property Position() As IPosition
Constructor that does not initialize any fields.
constructorBreakStatement()init()BreakStatement()Sub New()Converts a statement to a string.
method BuildStatement(anIndent: Int32; sb: StringBuilder)void BuildStatement(Int32 anIndent, StringBuilder sb)func BuildStatement( anIndent: Int32, sb: StringBuilder)void BuildStatement(Int32 anIndent, StringBuilder sb)Sub BuildStatement(anIndent As Int32, sb As StringBuilder)Parameters:
- anIndent: The nr of spaces to place before the start of this statement.
- sb: Output string builder.
Recursively sets the OverflowCheck flag
method SetOverflowCheckRecursive(value: Boolean)void SetOverflowCheckRecursive(Boolean value)func SetOverflowCheckRecursive(_ value: Boolean)void SetOverflowCheckRecursive(Boolean value)Sub SetOverflowCheckRecursive(value As Boolean)Parameters:
- value: new value
Returns this statement as a string
method ToString: StringString ToString()func ToString() -> StringString ToString()Function ToString() As StringConverts this statement to a value tree that creates these statements
method ToValue(aServicesParameter: Value; aServices: IServices): ValueValue ToValue(Value aServicesParameter, IServices aServices)func ToValue( aServicesParameter: Value, aServices: IServices) -> ValueValue ToValue(Value aServicesParameter, IServices aServices)Function ToValue(aServicesParameter As Value, aServices As IServices) As ValueParameters:
- aServicesParameter: the value that contains where aServices is stored
- aServices: Actual services instance.