org.shiftone.jrat.core.criteria
Class MatcherMethodCriteria

java.lang.Object
  extended by org.shiftone.jrat.core.criteria.MatcherMethodCriteria
All Implemented Interfaces:
MethodCriteria

public class MatcherMethodCriteria
extends java.lang.Object
implements MethodCriteria

Used by ant task.

Author:
jeff@shiftone.org (Jeff Drost)

Field Summary
 
Fields inherited from interface org.shiftone.jrat.core.criteria.MethodCriteria
ALL, DEFAULT, NONE
 
Constructor Summary
MatcherMethodCriteria()
           
 
Method Summary
 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?
 void setClassName(java.lang.String classNameMatcher)
           
 void setMethodName(java.lang.String methodNameMatcher)
           
 void setSignature(java.lang.String signatureMatcher)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatcherMethodCriteria

public MatcherMethodCriteria()
Method Detail

setClassName

public void setClassName(java.lang.String classNameMatcher)

setMethodName

public void setMethodName(java.lang.String methodNameMatcher)

setSignature

public void setSignature(java.lang.String signatureMatcher)

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object