statements
KlasseLoopStatement

The LoopStatement class models all kinds of looping statements, which can occur in considered object-oriented programming languages, e. g. for, while, do-while or foreach.

Attribute
<Enumeration> LoopStatementKind kind kind
<Class> Statement body body

This property represents a reference to the statement which represents the body of this loop statement.

<Class> GASTExpression breakConditionExpression breakConditionExpression

This property represents a reference to the expression which represents the break condition of this loop statement.

<Class> GASTExpression initExpression initExpression

This property represents the initialization expression of the loop. This property is optional.

<Class> GASTExpression incrementExpression incrementExpression

This property represents the incrementation expression of the loop. This property is optional.

!!TableHeading.InheritedAttributes!!gast::statements::Statement gast::statements::Statement
accesses accesses, surroundingStatement surroundingStatement, numberOfStatements numberOfStatements, maximumNestingLevel maximumNestingLevel, numberOfComments numberOfComments, linesOfCode linesOfCode, numberOfEdgesInCFG numberOfEdgesInCFG, numberOfNodesInCFG numberOfNodesInCFG

!!TableHeading.InheritedAttributes!!gast::core::SourceEntity gast::core::SourceEntity
position position

!!TableHeading.InheritedAttributes!!gast::core::ModelElement gast::core::ModelElement
annotations annotations, status status, sissyId sissyId

!!TableHeading.InheritedAttributes!!gast::core::Identifier gast::core::Identifier
id id

!!TableHeading.InheritedOperations!!gast::statements::Statement gast::statements::Statement

!!TableHeading.InheritedOperations!!gast::core::SourceEntity gast::core::SourceEntity

!!TableHeading.InheritedOperations!!gast::core::ModelElement gast::core::ModelElement

!!TableHeading.InheritedOperations!!gast::core::Identifier gast::core::Identifier

Eigenschaften:

Alias
Classifier Behavior
Is Abstractfalse
Is Activefalse
Is Leaffalse
Keywords
NameLoopStatement
Name Expression
Namespace<<ePackage>> <Package> statements
Owned Template Signature
Owner<<ePackage>> <Package> statements
Owning Template Parameter
Package<<ePackage>> <Package> statements
Qualified Namegast::statements::LoopStatement
Representation
Stereotype
Template Parameter
VisibilityPublic

Details für Attribute

 body
Public <Class> Statement body

This property represents a reference to the statement which represents the body of this loop statement.

Eigenschaften:

AggregationComposite
Alias
Association<Association> A_body_loopStatement
Association End
Class<Class> LoopStatement
Datatype
Default
Default Value
Is Compositetrue
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower1
Lower Value<Literal Integer> 1
Multiplicity1
Namebody
Name Expression
Namespace<Class> LoopStatement
Opposite
Owned Template Signature
Owner<Class> LoopStatement
Owning Association
Owning Template Parameter
Qualified Namegast::statements::LoopStatement::body
Stereotype
Template Parameter
Type<Class> Statement
Upper1
Upper Value<Literal Unlimited Natural> 1
VisibilityPublic


 breakConditionExpression
Public <Class> GASTExpression breakConditionExpression

This property represents a reference to the expression which represents the break condition of this loop statement.

Eigenschaften:

AggregationComposite
Alias
Association<Association> A_breakConditionExpression_loopStatement
Association End
Class<Class> LoopStatement
Datatype
Default
Default Value
Is Compositetrue
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower1
Lower Value<Literal Integer> 1
Multiplicity1
NamebreakConditionExpression
Name Expression
Namespace<Class> LoopStatement
Opposite
Owned Template Signature
Owner<Class> LoopStatement
Owning Association
Owning Template Parameter
Qualified Namegast::statements::LoopStatement::breakConditionExpression
Stereotype
Template Parameter
Type<Class> GASTExpression
Upper1
Upper Value<Literal Unlimited Natural> 1
VisibilityPublic


 incrementExpression
Public <Class> GASTExpression incrementExpression

This property represents the incrementation expression of the loop. This property is optional.

Eigenschaften:

AggregationComposite
Alias
Association<Association> A_incrementExpression_loopStatement
Association End
Class<Class> LoopStatement
Datatype
Default
Default Value
Is Compositetrue
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower0
Lower Value<Literal Integer> 0
Multiplicity0..1
NameincrementExpression
Name Expression
Namespace<Class> LoopStatement
Opposite
Owned Template Signature
Owner<Class> LoopStatement
Owning Association
Owning Template Parameter
Qualified Namegast::statements::LoopStatement::incrementExpression
Stereotype
Template Parameter
Type<Class> GASTExpression
Upper1
Upper Value<Literal Unlimited Natural> 1
VisibilityPublic


 initExpression
Public <Class> GASTExpression initExpression

This property represents the initialization expression of the loop. This property is optional.

Eigenschaften:

AggregationComposite
Alias
Association<Association> A_initExpression_loopStatement
Association End
Class<Class> LoopStatement
Datatype
Default
Default Value
Is Compositetrue
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower0
Lower Value<Literal Integer> 0
Multiplicity0..1
NameinitExpression
Name Expression
Namespace<Class> LoopStatement
Opposite
Owned Template Signature
Owner<Class> LoopStatement
Owning Association
Owning Template Parameter
Qualified Namegast::statements::LoopStatement::initExpression
Stereotype
Template Parameter
Type<Class> GASTExpression
Upper1
Upper Value<Literal Unlimited Natural> 1
VisibilityPublic


 kind
Public <Enumeration> LoopStatementKind kind
Eigenschaften:

AggregationNone
Alias
Association
Association End
Class<Class> LoopStatement
Datatype
Default
Default Value
Is Compositefalse
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower1
Lower Value
Multiplicity1
Namekind
Name Expression
Namespace<Class> LoopStatement
Opposite
Owned Template Signature
Owner<Class> LoopStatement
Owning Association
Owning Template Parameter
Qualified Namegast::statements::LoopStatement::kind
Stereotype
Template Parameter
Type<Enumeration> LoopStatementKind
Upper1
Upper Value
VisibilityPublic