ForStatement Class |
Namespace: WeroSoft.Workflow.Statements
public sealed class ForStatement : IterationStatement, IVariableProviderStatement
The for statement executes a statement or a block of statements while a specified Boolean expression evaluates to true. At any point within the for statement block, you can break out of the loop by using the break statement, or step to the next iteration in the loop by using the continue statement.You can also exit a for loop by the return, or throw statements.
The for statement in HPL defines the following HPL properties:This code sample shows HPL code:
The code below shows a fully qualified for statement with in-line defined variable.// Full featured for loop. trace(TraceLevel.Info, "Start Demo") for (int counter = 0; counter < 100; counter++) trace(TraceLevel.Info, forDemo) if (counter % 10 == 0) counter += 10 trace(TraceLevel.Info, "End of Demo")
The ForStatement type exposes the following members.
Name | Description | |
---|---|---|
ForStatement | Initializes a new instance of the ForStatement class |
Name | Description | |
---|---|---|
Condition |
Gets or sets the condition expression of the for statement.
| |
ExecutionState |
Gets a value indicating the execution state of the statement.
(Inherited from Statement.) | |
Id |
Gets or sets the identifier of the statement.
(Inherited from Statement.) | |
Indentation |
Gets the indentation of this particular statement within a expression tree.
(Inherited from Statement.) | |
Initializer |
Gets or sets the initializer expression of the for statement.
| |
IsContinuing |
Gets a value indicating whether the loop shall continue looping.
(Inherited from IterationStatement.) | |
IsDeactivated |
Gets or sets a value indicating whether the statement is deactivated from hierarchy or not.
(Inherited from Statement.) | |
IsDeactivating |
Gets or sets a value indicating whether the statement is deactivated and is deactivating its sub-ordinary statements or not.
(Inherited from Statement.) | |
IsExecutionClone |
Gets a value indicating whether this statement is an execution clone.
(Inherited from Statement.) | |
IsFirstAchievement |
Gets a value indicating whether the first looping
(Inherited from IterationStatement.) | |
IsStatementDeactivated |
Gets a value indicating whether the statement is deactivated or not.
(Inherited from Statement.) | |
Item |
Gets the statement property.
(Inherited from Statement.) | |
IterationCount |
Gets the iteration count of the iteration statement.
(Inherited from IterationStatement.) | |
Iterator |
Gets or sets the iterator expression of the for statement.
| |
MetaInfo |
Gets the meta information of the statement.
(Inherited from Statement.) | |
ModificationState |
Gets a value indicating whether any property of the statement has been modified.
(Inherited from Statement.) | |
Name |
Gets or sets the name of the iteration statement.
(Inherited from IterationStatement.) | |
Parent |
Gets the parent of the statement.
(Inherited from Statement.) | |
PathName |
Gets the path name.
(Inherited from Statement.) | |
ProgrammingName |
Gets the programming name of the statement.
(Inherited from Statement.) | |
StatementLine |
Gets the string representing the statement in the code.
(Inherited from Statement.) | |
Statements |
Gets the child statements within the HPL syntax tree.
(Inherited from StructureStatement.) | |
TypeFullName |
Gets the type name with the name space.
(Inherited from Statement.) | |
TypeName |
Gets the type name of the statement without its name space.
(Inherited from Statement.) | |
VariableName |
Gets or sets the name of the variable used for iteration control.
| |
VariableTypeName |
Gets or sets the type of the variable used for iteration control.
|
Name | Description | |
---|---|---|
Aborted |
Default implementation of the event handler Aborted.
(Inherited from Statement.) | |
Analyzed |
Default implementation of the event handler Analyzed.
(Inherited from Statement.) | |
Analyzing | (Overrides IterationStatementAnalyzing(Object, StatementAnalysisEventArgs).) | |
ApplyRestoreInfo |
Applies the restore information from the restore point to this command.
(Inherited from IterationStatement.) | |
Changed |
Default implementation of the event handler Changed.
(Inherited from Statement.) | |
CleanupAnalysis |
Cleanup of the analysis.
(Inherited from IterationStatement.) | |
Created |
Default implementation of the event handler Created.
(Inherited from Statement.) | |
CreateStatementLine |
Creates the statement line.
| |
Creating |
Default implementation of the event handler Creating.
(Inherited from Statement.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Error |
Default implementation of the event handler Error.
(Inherited from Statement.) | |
Execute |
Implements the execution of the statement.
(Overrides IterationStatementExecute(Object, StatementExecutionEventArgs).) | |
Executed |
Default implementation of the event handler Executed.
(Inherited from Statement.) | |
Executing | (Overrides StatementExecuting(Object, StatementExecutionEventArgs).) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetProperties |
Gets a read only collection of cloned properties of the statement.
(Inherited from Statement.) | |
GetStatementLine |
Gets the signature representing the statement in the code.
(Inherited from Statement.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetVariable |
Gets the variable if one is defined.
| |
Loaded |
Default implementation of the event handler Loaded.
(Inherited from Statement.) | |
Migrate |
Default implementation of the event handler Migrate.
(Inherited from Statement.) | |
RegisterRestoreInfo |
Registers the restore information from this command to the restore point.
(Inherited from IterationStatement.) | |
Saved |
Default implementation of the event handler Saved.
(Inherited from Statement.) | |
Saving |
Default implementation of the event handler Saving.
(Inherited from Statement.) | |
ToString |
Returns the statement standard layout.
(Inherited from Statement.) |
Name | Description | |
---|---|---|
ConditionProperty |
Gets the name of the property 'Condition' as a string.
| |
InitializerProperty |
Gets the name of the property 'Initializer' as a string.
| |
IteratorProperty |
Gets the name of the property 'Iterator' as a string.
| |
VariableNameProperty |
Gets the name of the property 'VariableName' as a string.
| |
VariableTypeNameProperty |
Gets the name of the property 'VariableTypeName' as a string.
|
Name | Description | |
---|---|---|
Clone(CloneWorkingMode, IEnumerableType) | Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.) | |
CloneT(CloneWorkingMode, IEnumerableType) | Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.) | |
Convert | (Defined by DataConverterExtensions.) | |
CreateTraceDataEntry(StringBuilder, SourceLevels, TraceableKind, String) | Overloaded.
Creates a data entry into a string builder according to the giving parameters.
(Defined by TraceExtensions.) | |
CreateTraceDataEntry(SourceLevels, TraceableKind, String, String, Int32) | Overloaded.
Creates a trace entry for a data element.
(Defined by TraceExtensions.) | |
CreateTraceDataEntry(StringBuilder, SourceLevels, TraceableKind, String, String, Int32) | Overloaded.
Creates a trace entry into a string builder.
(Defined by TraceExtensions.) | |
DynamicCast |
Dynamically casts a reference to another type.
(Defined by TypeManagerHelper.) | |
ExtractSystemParametersFromTrigger |
Extracts the system parameters from a collection of trigger parameter and transform them to a dictionary using string keys and string values.
(Defined by TriggerExtensions.) | |
GetFieldValue(String) | Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.) | |
GetFieldValueT(String) | Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.) | |
GetPropertyValue(String) | Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.) | |
GetPropertyValueT(String) | Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.) | |
Inject(Type, Object) | Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.) | |
Inject(Type, Object, Boolean) | Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.) | |
InjectField |
Injects a value to a property within a data object.
(Defined by DataInjection.) | |
InjectProperty(String, Object) | Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.) | |
InjectProperty(String, Type, Object) | Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.) | |
Invoke(String, Object) | Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.) | |
InvokeTResult(String, Object) | Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.) | |
SetFieldValue |
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.) | |
SetPropertyValue |
Sets the data object on a defined property of a particular type.
(Defined by UnitTest.) | |
SetReadOnlyFieldValue |
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.) | |
TryInjectProperty |
Tries to Inject a value to a property within a data object.
(Defined by DataInjection.) |