org.codehaus.aspectwerkz.regexp
Class CallerSidePattern

java.lang.Object
  extended byorg.codehaus.aspectwerkz.regexp.Pattern
      extended byorg.codehaus.aspectwerkz.regexp.CallerSidePattern
All Implemented Interfaces:
java.io.Serializable

public class CallerSidePattern
extends Pattern

Implements the regular expression pattern matcher for caller side methods in AspectWerkz.

Author:
Jonas Bonér
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.codehaus.aspectwerkz.regexp.Pattern
MULTIPLE_WILDCARD, MULTIPLE_WILDCARD_KEY, SINGLE_WILDCARD
 
Method Summary
 java.lang.String getPattern()
          Returns the pattern as a string.
 boolean matches(MethodMetaData methodMetaData)
          Matches a caller side pointcut.
 boolean matches(java.lang.String className)
          Matches a caller side pointcut.
 boolean matches(java.lang.String className, MethodMetaData methodMetaData)
          Matches a caller side pointcut.
 
Methods inherited from class org.codehaus.aspectwerkz.regexp.Pattern
compileCallerSidePattern, compileClassPattern, compileFieldPattern, compileMethodPattern, compileThrowsPattern
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

matches

public boolean matches(java.lang.String className)
Matches a caller side pointcut.

Parameters:
className - the class name
Returns:
true if we have a matches

matches

public boolean matches(MethodMetaData methodMetaData)
Matches a caller side pointcut.

Parameters:
methodMetaData - the method meta-data
Returns:
true if we have a matches

matches

public boolean matches(java.lang.String className,
                       MethodMetaData methodMetaData)
Matches a caller side pointcut.

Parameters:
className - the class name
methodMetaData - the method meta-data
Returns:
true if we have a matches

getPattern

public java.lang.String getPattern()
Returns the pattern as a string.

Returns:
the pattern


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.