org.codehaus.aspectwerkz.regexp
Class ClassPattern

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

public class ClassPattern
extends Pattern

Implements the regular expression pattern matcher for classes in AspectWerkz.

Example of supported patterns:

      foo.bar.SomeClass
      foo.bar.*
      foo.*.SomeClass
      foo..
 

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 equals(java.lang.Object o)
           
 java.lang.String getPattern()
          Returns the pattern as a string.
 int hashCode()
           
 boolean matches(java.lang.String className)
          Matches a class name.
 
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

matches

public boolean matches(java.lang.String className)
Matches a class name.

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

getPattern

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

Returns:
the pattern

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)


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