statements
KlasseBlockStatement

The BlockStatement class models a composition statement or a function body. It also represents synchronized blocks.

Attribute
<Primitive Type> Boolean synchronized synchronized

This property is true if this block statement represents a synchronized block.

<Class> Function surroundingFunction surroundingFunction

If this block statement is a function body this is property is a reference to the function. Otherwise it is "null".

<Class> Statement statements statements

This property is an ordered list of statements inside this block statement.

!!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
NameBlockStatement
Name Expression
Namespace<<ePackage>> <Package> statements
Owned Template Signature
Owner<<ePackage>> <Package> statements
Owning Template Parameter
Package<<ePackage>> <Package> statements
Qualified Namegast::statements::BlockStatement
Representation
Stereotype
Template Parameter
VisibilityPublic

Details für Attribute

 statements
Public <Class> Statement statements

This property is an ordered list of statements inside this block statement.

Eigenschaften:

AggregationComposite
Alias
Association<<ordered>> <Association> A_statements_blockStatement
Association End
Class<Class> BlockStatement
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
Multiplicity*
Namestatements
Name Expression
Namespace<Class> BlockStatement
Opposite
Owned Template Signature
Owner<Class> BlockStatement
Owning Association
Owning Template Parameter
Qualified Namegast::statements::BlockStatement::statements
Stereotype
Template Parameter
Type<Class> Statement
Upper*
Upper Value<Literal Unlimited Natural> *
VisibilityPublic


 surroundingFunction
Public <Class> Function surroundingFunction

If this block statement is a function body this is property is a reference to the function. Otherwise it is "null".

Eigenschaften:

AggregationNone
Alias
Association<Association> A_body_surroundingFunction
Association End
Class<Class> BlockStatement
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
NamesurroundingFunction
Name Expression
Namespace<Class> BlockStatement
Opposite<Property> body : BlockStatement [0..1]
Owned Template Signature
Owner<Class> BlockStatement
Owning Association
Owning Template Parameter
Qualified Namegast::statements::BlockStatement::surroundingFunction
Stereotype
Template Parameter
Type<Class> Function
Upper1
Upper Value
VisibilityPublic


 synchronized
Public <Primitive Type> Boolean synchronized

This property is true if this block statement represents a synchronized block.

Eigenschaften:

AggregationNone
Alias
Association
Association End
Class<Class> BlockStatement
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
Namesynchronized
Name Expression
Namespace<Class> BlockStatement
Opposite
Owned Template Signature
Owner<Class> BlockStatement
Owning Association
Owning Template Parameter
Qualified Namegast::statements::BlockStatement::synchronized
Stereotype
Template Parameter
Type<Primitive Type> Boolean
Upper1
Upper Value
VisibilityPublic