| spoon.support.template.ParameterMatcher
All known Subclasses: spoon.support.template.DefaultParameterMatcher,
ParameterMatcher | public interface ParameterMatcher (Code) | | Allows the definition of a specific matching policy for a given template
parameter. When using
spoon.template.TemplateMatcher , parameters are
by default matched to anything. Defining a new type and precising it in the
spoon.template.Parameter annotation allows to precise the form that
the parameter will match.
Note that this feature is not yet fully supported but will be in a close
future.
|
match | boolean match(TemplateMatcher templateMatcher, CtElement template, CtElement toMatch)(Code) | | To be defined to implement a matching strategy for template parameter(s).
Parameters: templateMatcher - the instance of the matcher that is currently performing thematching (up-caller) Parameters: template - the template element to match against Parameters: toMatch - the element to be tested for a match true if matching |
match | boolean match(TemplateMatcher templateMatcher, CtReference template, CtReference toMatch)(Code) | | To be defined to implement a matching strategy for template parameter(s).
Parameters: templateMatcher - the instance of the matcher that is currently performing thematching (up-caller) Parameters: template - the template reference to match against Parameters: toMatch - the reference to be tested for a match true if matching |
|
|