Elements will be substituted by parameter value
Add parameters for each field reference to variable named `variableName`
For example this pattern model
class Params {
int paramA;
int paramB;
}
void matcher(Params p) {
return p.paramA + p.paramB;
}
called with `byFieldRefOfVariable("p")` will create pattern parameters: `paramA` and `paramB`
All elements matched by
Filter
will be substituted by parameter value
each invocation of `method` will be replaces by parameter value
Searches for a type visible in scope `templateType`, whose simple name is equal to `localTypeSimpleName`
Any named element by it's simple name
Creates pattern parameter for each key of parameterValues
Map
.
Any reference identified by it's simple name.
Attribute defined by `role` of `element` will be substituted by parameter value
Attribute defined by `role` of all elements matched by
Filter
will be substituted by parameter value
All spoon model string attributes whose value is equal to `stringMarker`
are subject for substitution by current parameter
All spoon model string attributes whose value contains whole string or a substring equal to `stringMarker`
are subject for substitution by current parameter.
Creates pattern parameter for each field of type
TemplateParameter
.
Note: This method is here for compatibility with obsolete legacy
Template
based concept.
`type` itself and all the references to the `type` are subject for substitution by current parameter
PatternParameterConfigurator.byType(String typeQualifiedName)
type identified by `typeQualifiedName` itself and all the references (with arbitrary actual type arguments)
to that type are subject for substitution by current parameter
type referred by
CtTypeReference
`type` and all the references (with same actual type arguments)
to that type are subject for substitution by current parameter
variable read/write of `variable`
variable read/write of `variable`
marks a CtIf and CtForEach to be matched, even when inlined.
Creates a parameter with name `paramName` and assigns it into context, so next calls on builder will be applied to this parameter
Defines what happens when before explicitly added
RootNode
has to be replaced by another
RootNode
Defines type of parameter value (List/Set/Map/single).
Set expected type of Parameter.