 | PatternElement(Int32, String, String, String, GrGenType, Boolean, Single, Int32, Boolean, StorageAccess, StorageAccessIndex, IndexAccess, NameLookup, UniqueLookup, PatternElement, Boolean, Expression) Constructor |
Instantiates a new PatternElement object.
Namespace: de.unika.ipd.grGen.lgspAssembly: lgspBackend (in lgspBackend.dll) Version: GrGen.NET 7.1
Syntaxprotected PatternElement(
int typeID,
string typeName,
string name,
string unprefixedName,
GrGenType[] allowedTypes,
bool[] isAllowedType,
float cost,
int parameterIndex,
bool maybeNull,
StorageAccess storage,
StorageAccessIndex storageIndex,
IndexAccess indexAccess,
NameLookup nameLookup,
UniqueLookup uniqueLookup,
PatternElement elementBeforeCasting,
bool defToBeYieldedTo,
Expression initialization
)
Parameters
- typeID Int32
- The type ID of the pattern element.
- typeName String
- The name of the type interface of the pattern element.
- name String
- The name of the pattern element.
- unprefixedName String
- Pure name of the pattern element as specified in the .grg without any prefixes
- allowedTypes GrGenType
- An array of allowed types for this pattern element.
If it is null, all subtypes of the type specified by typeID (including itself)
are allowed for this pattern element.
- isAllowedType Boolean
- An array containing a bool for each node/edge type (order defined by the TypeIDs)
which is true iff the corresponding type is allowed for this pattern element.
It should be null if allowedTypes is null or empty or has only one element.
- cost Single
- Default cost/priority from frontend, user priority if given.
- parameterIndex Int32
- Specifies to which rule parameter this pattern element corresponds.
- maybeNull Boolean
- Tells whether this pattern element may be null (is a parameter if true).
- storage StorageAccess
- If not null this pattern element is to be bound by iterating the given storage.
- storageIndex StorageAccessIndex
- If not null this pattern element is to be determined by a storage lookup,
with the accessor given here applied as index into the storage given in the storage parameter.
- indexAccess IndexAccess
- If not null this pattern element is to be determined by an index lookup, with details specified by the concrete index access type contained in this field.
- nameLookup NameLookup
- If not null this pattern element is to be determined by a name map lookup.
- uniqueLookup UniqueLookup
- If not null this pattern element is to be determined by a unique index lookup.
- elementBeforeCasting PatternElement
- If not null this pattern node is to be bound by casting the given elementBeforeCasting to the pattern node type or causing matching to fail.
- defToBeYieldedTo Boolean
- 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 Expression
- The initialization expression for the element if some was defined,
only possible for defToBeYieldedTo elements, otherwise null.
See Also