|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.qualitytest.blueprint.strategy.matching.SetterMethodMatchingStrategy
public class SetterMethodMatchingStrategy
This value matching strategy matches all methods that are setters, i.e. start with the prefix 'set'. This matching strategy does never match by type.
| Constructor Summary | |
|---|---|
SetterMethodMatchingStrategy()
|
|
| Method Summary | |
|---|---|
boolean |
matchesByField(Field field)
Test if a field matches this strategy. |
boolean |
matchesByMethod(Method method)
Test if a method matches this strategy. |
boolean |
matchesByType(Class<?> clazz)
Test if a type matches this strategy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetterMethodMatchingStrategy()
| Method Detail |
|---|
public boolean matchesByField(Field field)
MatchingStrategy
matchesByField in interface MatchingStrategyfield - A field
ValueCreationStrategy should be appliedpublic boolean matchesByMethod(Method method)
MatchingStrategy
matchesByMethod in interface MatchingStrategymethod - A method
ValueCreationStrategy should be appliedpublic boolean matchesByType(Class<?> clazz)
MatchingStrategy
matchesByType in interface MatchingStrategyclazz - a clazz type
ValueCreationStrategy should be applied
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||