public final class CheckLoggingUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOGGER_TYPE_FULL_NAME |
static String |
LOGGER_TYPE_NAME |
static String |
LOGGER_VAR_NAME |
Modifier and Type | Method and Description |
---|---|
static String |
getClassName(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
Returns the name of the closest enclosing class of the point by the passed-in abstract syntax
tree (AST).
|
static String |
getMethodName(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
Returns the name the method (and the enclosing class) at a given point specified by the
passed-in abstract syntax tree (AST).
|
static String |
getTypeName(com.puppycrawl.tools.checkstyle.api.DetailAST ast) |
static String |
getVariableName(com.puppycrawl.tools.checkstyle.api.DetailAST ast) |
static boolean |
isAFieldVariable(com.puppycrawl.tools.checkstyle.api.DetailAST ast) |
static boolean |
isLoggerType(com.puppycrawl.tools.checkstyle.api.DetailAST ast) |
static boolean |
isLogMethod(String methodName) |
public static final String LOGGER_TYPE_NAME
public static final String LOGGER_TYPE_FULL_NAME
public static final String LOGGER_VAR_NAME
public static String getTypeName(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
public static boolean isLoggerType(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
public static String getVariableName(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
public static boolean isAFieldVariable(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
public static String getMethodName(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
ast
- an abstract syntax tree (AST) pointing to method callpublic static boolean isLogMethod(String methodName)
public static String getClassName(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
ast
- an abstract syntax tree (AST)Copyright © 2019 OpenDaylight. All rights reserved.