|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkieker.checkstyle.CSUtility
public final class CSUtility
This is a simple utility class providing some methods which can be useful for other checkstyle checks as well.
| Method Summary | |
|---|---|
static java.util.Collection<com.puppycrawl.tools.checkstyle.api.DetailAST> |
getMethodsFromClass(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
This method extracts all method definitions from the given class (or interface). |
static boolean |
isAbstract(com.puppycrawl.tools.checkstyle.api.DetailAST clazz)
Checks whether the given class is marked as abstract or not. |
static boolean |
isPrivate(com.puppycrawl.tools.checkstyle.api.DetailAST clazz)
Checks whether the given class is marked as private or not. |
static boolean |
parentIsInterface(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
Checks whether the "parent" (the containing element) of the method is an interface or not. |
static boolean |
sinceTagAvailable(com.puppycrawl.tools.checkstyle.api.Check check,
com.puppycrawl.tools.checkstyle.api.DetailAST ast)
This method checks whether the given component has a javadoc comment with a valid since tag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean sinceTagAvailable(com.puppycrawl.tools.checkstyle.api.Check check,
com.puppycrawl.tools.checkstyle.api.DetailAST ast)
check - The current check.ast - The component to check for the tag.
public static java.util.Collection<com.puppycrawl.tools.checkstyle.api.DetailAST> getMethodsFromClass(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
ast - The class (or interface).
public static boolean parentIsInterface(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
ast - The method to check.
public static boolean isPrivate(com.puppycrawl.tools.checkstyle.api.DetailAST clazz)
clazz - The class to check.
public static boolean isAbstract(com.puppycrawl.tools.checkstyle.api.DetailAST clazz)
clazz - The class to check.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||