 | PatternVariable Constructor (VarType, String, String, Int32, Boolean, Expression) |
Instantiates a new PatternVariable object.
Namespace:
de.unika.ipd.grGen.lgsp
Assembly:
lgspBackend (in lgspBackend.dll) Version: GrGen.NET 7.2
Syntaxpublic PatternVariable(
VarType type,
string name,
string unprefixedName,
int parameterIndex,
bool defToBeYieldedTo,
Expression initialization
)
Parameters
- type
- Type: de.unika.ipd.grGen.libGrVarType
The GrGen type of the variable. - name
- Type: SystemString
The name of the variable. - unprefixedName
- Type: SystemString
Pure name of the variable as specified in the .grg without any prefixes. - parameterIndex
- Type: SystemInt32
Specifies to which rule parameter this variable corresponds. - defToBeYieldedTo
- Type: SystemBoolean
Iff true the element is only defined in its PointOfDefinition pattern,
it gets matched in another, nested or called pattern which yields it to the containing pattern. - initialization
- Type: Expression
The initialization expression for the variable if some was defined, otherwise null.
See Also