|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.expression.regexp.Pattern
org.codehaus.aspectwerkz.expression.regexp.TypePattern
public class TypePattern
Implements the regular expression pattern matcher for types.
Field Summary | |
---|---|
protected String |
m_pattern
The pattern as a string. |
protected com.karneim.util.collection.regex.Pattern |
m_typeNamePattern
The fully qualified type name. |
Fields inherited from class org.codehaus.aspectwerkz.expression.regexp.Pattern |
---|
ABBREVIATIONS, EAGER_WILDCARD, REGULAR_WILDCARD |
Method Summary | |
---|---|
protected static boolean |
areEqualsOrBothNull(Object o1,
Object o2)
|
boolean |
equals(Object o)
|
protected void |
escape(String pattern)
Escapes the type pattern. |
String |
getPattern()
Returns the pattern as a string. |
SubtypePatternType |
getSubtypePatternType()
Returns the subtype pattern type |
int |
hashCode()
|
protected static int |
hashCodeOrZeroIfNull(Object o)
|
boolean |
isEagerWildCard()
Checks if the pattern matches all types. |
boolean |
matches(String typeName)
Matches a type name. |
boolean |
matchInterfaces(ClassInfo[] interfaces,
ClassInfo classInfo)
Tries to finds a parse at some interface in the hierarchy. |
boolean |
matchSuperClasses(ClassInfo classInfo)
Tries to finds a parse at some superclass in the hierarchy. |
boolean |
matchType(ClassInfo classInfo)
Matches a type. |
Methods inherited from class org.codehaus.aspectwerkz.expression.regexp.Pattern |
---|
compileNamePattern, compileTypePattern |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient com.karneim.util.collection.regex.Pattern m_typeNamePattern
protected String m_pattern
Method Detail |
---|
public boolean matches(String typeName)
typeName
- the name of the type
public boolean matchType(ClassInfo classInfo)
classInfo
- the info of the class
public boolean matchSuperClasses(ClassInfo classInfo)
classInfo
- the class info
public boolean matchInterfaces(ClassInfo[] interfaces, ClassInfo classInfo)
interfaces
- the interfacesclassInfo
- the class info
public SubtypePatternType getSubtypePatternType()
public boolean isEagerWildCard()
public String getPattern()
protected void escape(String pattern)
pattern
- the method patternpublic int hashCode()
hashCode
in class Object
protected static int hashCodeOrZeroIfNull(Object o)
public boolean equals(Object o)
equals
in class Object
protected static boolean areEqualsOrBothNull(Object o1, Object o2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |