org.codehaus.aspectwerkz.regexp
Class ClassPattern
java.lang.Object
org.codehaus.aspectwerkz.regexp.Pattern
org.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
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 java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
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.