KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > support > template > DefaultParameterMatcher


1 package spoon.support.template;
2
3 import spoon.reflect.declaration.CtElement;
4 import spoon.reflect.reference.CtReference;
5 import spoon.template.TemplateMatcher;
6
7
8 /**
9  * Default implementation for the {@link spoon.template.Parameter#match()}
10  * @author noguera
11  *
12  */

13 public class DefaultParameterMatcher implements ParameterMatcher {
14
15     /**
16      * Default implementation.
17      * @return always <code>true</code>.
18      */

19     public boolean match(TemplateMatcher templateMatcher, CtElement template,
20             CtElement toMatch) {
21         return true;
22     }
23
24     /**
25      * Default implementation.
26      * @return always <code>true</code>.
27      */

28     public boolean match(TemplateMatcher templateMatcher, CtReference template, CtReference toMatch) {
29         // TODO Auto-generated method stub
30
return true;
31     }
32
33 }
34
Popular Tags