|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.exceptions.util.FilterUtils
public final class FilterUtils
Provides utilities for filtering on Doc
elements.
Method Summary | |
---|---|
static boolean |
isImplementing(com.sun.javadoc.ClassDoc classDoc, Class<?> type) Checks if the given class is implementing the given interface type. |
static boolean |
isInterfaceDeclared(com.sun.javadoc.ClassDoc classDoc, Class<?> type) Checks if the given class is implementing the given interface type directly. |
static boolean |
isValidJavaIdentifier(String token) Checks if the given token is a valid Java identifier. |
static boolean |
isValidJavaPackageDirPath(String path) Checks that the path is a valid directory path for packages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isImplementing(com.sun.javadoc.ClassDoc classDoc, Class<?> type)
classDoc
- the class that is tested on implementing the interface of the given type.
type
- the type of the interface to test.
true
if the class implements the given type,
false
otherwise.
public static boolean isInterfaceDeclared(com.sun.javadoc.ClassDoc classDoc, Class<?> type) throws NullPointerException
If the classDoc
value is null
, false
is returned. This is to provide the same interface as in isImplementing(ClassDoc, Class)
.
classDoc
- the class that is tested on implementing the interface of the given type.
type
- the type of the interface to test.
true
if the class declares the given type in its implements clause,
false
otherwise.
NullPointerException
- if the given interface
type
is
null
.
public static boolean isValidJavaIdentifier(String token)
token
- the token to check.
true
if the token is a valid Java identifier,
false
otherwise.
public static boolean isValidJavaPackageDirPath(String path)
path
- the path to check if it is valid.
true
if every directory name in the path is a valid Java package name,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |