org.codehaus.aspectwerkz.regexp
Class ThrowsPattern

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

public class ThrowsPattern
extends Pattern

Implements the regular expression pattern matcher for throws pointcuts 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
 boolean matches(MethodMetaData method)
          Matches a throws pointcut (method only).
 boolean matches(MethodMetaData method, java.lang.String exceptionClassName)
          Matches a throws 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(MethodMetaData method,
                       java.lang.String exceptionClassName)
Matches a throws pointcut.

Parameters:
method - the method
exceptionClassName - the exception class name
Returns:
true if we have a matches

matches

public boolean matches(MethodMetaData method)
Matches a throws pointcut (method only).

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


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