patterntesting.runtime.util.regex
Class TypePattern

Package class diagram package TypePattern
java.lang.Object
  extended by patterntesting.runtime.util.regex.TypePattern

public class TypePattern
extends 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
TypePattern(String pattern)
          Instantiates a new type pattern.
 
Method Summary
 boolean matches(Class<?> clazz)
          Matches.
 boolean matches(Object object)
          Matches.
 boolean matches(String classname)
          Matches.
 String toString()
          To string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypePattern

public TypePattern(String pattern)
Instantiates a new type pattern.

Parameters:
pattern - the pattern
Method Detail

matches

public boolean matches(Object object)
Matches.

Parameters:
object - the object
Returns:
true, if successful

matches

public boolean matches(Class<?> clazz)
Matches.

Parameters:
clazz - the clazz
Returns:
true, if successful

matches

public boolean matches(String classname)
Matches.

Parameters:
classname - the classname
Returns:
true, if successful

toString

public String toString()
To string.

Overrides:
toString in class Object
Returns:
the string
See Also:
Object.toString()


Copyright © 2002–2014 PatternTesting Team. All rights reserved.