public final class SevntuUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.puppycrawl.tools.checkstyle.api.DetailAST |
getNextSubTreeNode(com.puppycrawl.tools.checkstyle.api.DetailAST node,
com.puppycrawl.tools.checkstyle.api.DetailAST subTreeRoot)
Gets the next node of a syntactical tree (child of a current node or sibling of a current
node, or sibling of a parent of a current node).
|
static void |
reportInvalidToken(int token)
Reports passed token as unsupported by throwing
IllegalArgumentException exception. |
public static void reportInvalidToken(int token)
IllegalArgumentException exception.
This utility method if used to mark that token passed to
AbstractCheck.visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST) is not
supported by this method.token - token/type that is not supportedIllegalArgumentException - alwayspublic static com.puppycrawl.tools.checkstyle.api.DetailAST getNextSubTreeNode(com.puppycrawl.tools.checkstyle.api.DetailAST node,
com.puppycrawl.tools.checkstyle.api.DetailAST subTreeRoot)
node - Current node in consideringsubTreeRoot - The root node of the subtree. Can be a top level root nodeCopyright © 2021. All rights reserved.