org.shiftone.jrat.core.criteria
Class IncludeExcludeMethodCriteria
java.lang.Object
org.shiftone.jrat.core.criteria.IncludeExcludeMethodCriteria
- All Implemented Interfaces:
- MethodCriteria
public class IncludeExcludeMethodCriteria
- extends java.lang.Object
- implements MethodCriteria
Used by ant task.
(p1 or p2 or p3 or p4) and not(n1 or n2 or n3).
- Author:
- jeff@shiftone.org (Jeff Drost)
Method Summary |
void |
addNegative(MethodCriteria criteria)
|
void |
addPositive(MethodCriteria criteria)
|
boolean |
isMatch(java.lang.String className,
long modifier)
should a class with these attributes be matched? |
boolean |
isMatch(java.lang.String className,
java.lang.String methodName,
java.lang.String signature,
long modifier)
should a method with these attributes be matched? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncludeExcludeMethodCriteria
public IncludeExcludeMethodCriteria()
addPositive
public void addPositive(MethodCriteria criteria)
addNegative
public void addNegative(MethodCriteria criteria)
isMatch
public boolean isMatch(java.lang.String className,
long modifier)
- Description copied from interface:
MethodCriteria
- should a class with these attributes be matched?
- Specified by:
isMatch
in interface MethodCriteria
isMatch
public boolean isMatch(java.lang.String className,
java.lang.String methodName,
java.lang.String signature,
long modifier)
- Description copied from interface:
MethodCriteria
- should a method with these attributes be matched?
- Specified by:
isMatch
in interface MethodCriteria