TypeMatcher
public class SubtypeTypeMatcher extends java.lang.Object implements TypeMatcher
Constructor | Description |
---|---|
SubtypeTypeMatcher(ClassDescriptor classDescriptor) |
Constructor.
|
SubtypeTypeMatcher(org.apache.bcel.generic.ReferenceType supertype) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
matches(org.apache.bcel.generic.Type t) |
Determine whether given type matches this predicate.
|
java.lang.String |
toString() |
public SubtypeTypeMatcher(org.apache.bcel.generic.ReferenceType supertype)
supertype
- a ReferenceType: this TypeMatcher will test whether
or not candidate Types are subtypes of this Typepublic SubtypeTypeMatcher(ClassDescriptor classDescriptor)
classDescriptor
- a ClassDescriptor naming a class: this TypeMatcher will test whether
or not candidate Types are subtypes of the classpublic boolean matches(org.apache.bcel.generic.Type t)
TypeMatcher
matches
in interface TypeMatcher
t
- a Typepublic java.lang.String toString()
toString
in class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.