|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.regexp.Pattern
org.codehaus.aspectwerkz.regexp.MethodPattern
Implements the regular expression pattern matcher for methods in AspectWerkz.
Example of supported patterns:String method() // supports abbreviations for the java.lang.* and java.util.* namespaces java.lang.String method() * method() int method(*) // matches one parameter int method(..) // matches any number of parameters int method(*,*,int,*)
Field Summary |
Fields inherited from class org.codehaus.aspectwerkz.regexp.Pattern |
MULTIPLE_WILDCARD, MULTIPLE_WILDCARD_KEY, SINGLE_WILDCARD |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getPattern()
Returns the pattern as a string. |
int |
hashCode()
|
boolean |
matches(MethodMetaData method)
Matches a method. |
boolean |
matchMethodName(java.lang.String methodName)
Matches a method name. |
boolean |
matchParameterTypes(java.lang.String[] parameterTypes)
Matches a parameter list. |
boolean |
matchReturnType(java.lang.String returnType)
Matches a method return type. |
Methods inherited from class org.codehaus.aspectwerkz.regexp.Pattern |
compileCallerSidePattern, compileClassPattern, compileFieldPattern, compileMethodPattern, compileThrowsPattern |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean matches(MethodMetaData method)
method
- the method
public boolean matchMethodName(java.lang.String methodName)
methodName
- the name of the method
public boolean matchReturnType(java.lang.String returnType)
returnType
- the return type
public boolean matchParameterTypes(java.lang.String[] parameterTypes)
parameterTypes
- the parameter types
public java.lang.String getPattern()
public int hashCode()
public boolean equals(java.lang.Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |