Class TypePattern
- java.lang.Object
-
- patterntesting.runtime.util.regex.TypePattern
-
public class TypePattern extends java.lang.Object
A type pattern which matches patterns like "java..*" (all tpyes of the JDK). These are the same patterns as AspectJ allows.- Since:
- 1.4.1 (12.01.2014)
- Author:
- oliver
-
-
Constructor Summary
Constructors Constructor Description TypePattern(java.lang.String pattern)
Instantiates a new type pattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(java.lang.Class<?> clazz)
Matches.boolean
matches(java.lang.Object object)
Matches.boolean
matches(java.lang.String classname)
Matches.java.lang.String
toString()
To string.
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.Object object)
Matches.- Parameters:
object
- the object- Returns:
- true, if successful
-
matches
public boolean matches(java.lang.Class<?> clazz)
Matches.- Parameters:
clazz
- the clazz- Returns:
- true, if successful
-
matches
public boolean matches(java.lang.String classname)
Matches.- Parameters:
classname
- the classname- Returns:
- true, if successful
-
toString
public java.lang.String toString()
To string.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the string
- See Also:
Object.toString()
-
-