GrGen.NET v4.4 API: the libGr class library (the type exact interface gets generated)
SequenceComputation Class
Namespacesde.unika.ipd.grGen.libGrSequenceComputation
A sequence computation object with references to child sequence computations. The computations are basically: visited flags management, container manipulation, assignments and special functions; they may or may not return values. They do change things, in contrast to the side-effect free sequence expressions.
Declaration Syntax
C#
public abstract class SequenceComputation : SequenceBase
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
SequenceComputation(SequenceComputationType)
Initializes a new SequenceComputation object with the given sequence computation type.

Check(SequenceCheckingEnvironment)
Checks the sequence computation for errors utilizing the given checking environment reports them by exception default behavior: check all the children
(Overrides SequenceBase.Check(SequenceCheckingEnvironment).)
Children
Enumerates all child sequence computation objects

ChildrenBase (Overrides SequenceBase.ChildrenBase.)
Execute(IGraphProcessingEnvironment)
Executes this sequence computation.

GetLocalVariables(Dictionary<(Of <<'(SequenceVariable, SetValueType>)>>), List<(Of <<'(SequenceExpressionContainerConstructor>)>>))
Collects all variables of the sequence expression tree into the variables dictionary, and all container constructors used into the constructors array.

id
stores the sequence /expression unique id
(Inherited from SequenceBase.)
Id
returns the sequence /expresion id - every sequence /expression is assigned a unique id used in xgrs code generation for copies the old id is just taken over, does not cause problems as code is only generated once per defined sequence
(Inherited from SequenceBase.)
Precedence
The precedence of this operator. Zero is the highest priority, int.MaxValue the lowest. Used to add needed parentheses for printing sequences /expressions TODO: WTF? das ist im Parser genau umgekehrt implementiert!
(Inherited from SequenceBase.)
ReturnsValue
Tells whether Execute returns a value to be used as a result determining value for a boolean computation sequence. Only expressions do so, the values returned by plain computations don't bubble up to sequence level, are computation internal only.

SequenceComputationType
The type of the sequence computation (e.g. Assignment or MethodCall)

SetNeedForProfiling(Boolean)
sets for the very node the profiling flag (does not recurse)
(Inherited from SequenceBase.)
SetNeedForProfilingRecursive(Boolean)
sets for the node and all children, i.e. the entire tree the profiling flag
(Inherited from SequenceBase.)
Symbol
A string symbol representing this sequence /expression kind.
(Inherited from SequenceBase.)
Type(SequenceCheckingEnvironment)
Returns the type of the sequence default behaviour: returns "void"
(Overrides SequenceBase.Type(SequenceCheckingEnvironment).)
Inheritance Hierarchy

Assembly: libGr (Module: libGr) Version: 4.4.0.0 (4.4.0.0)