public abstract class AbstractNameCheck extends AbstractCheck
AutomaticBean.OutputStreamOptions
Modifier and Type | Field and Description |
---|---|
static String |
MSG_INVALID_PATTERN
Message key for invalid pattern error.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractNameCheck(String format)
Creates a new
AbstractNameCheck instance. |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
mustCheckName(DetailAST ast)
Decides whether the name of an AST should be checked against
the format regexp.
|
void |
setFormat(Pattern pattern)
Set the format for the specified regular expression.
|
void |
visitToken(DetailAST ast)
Called to process a token.
|
beginTree, clearMessages, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLine, getLines, getMessages, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, log, setClassLoader, setFileContents, setTabWidth, setTokens
finishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity
configure, contextualize, getConfiguration, setupChild
public static final String MSG_INVALID_PATTERN
protected AbstractNameCheck(String format)
AbstractNameCheck
instance.format
- format to check withprotected abstract boolean mustCheckName(DetailAST ast)
ast
- the AST to check.public final void setFormat(Pattern pattern)
pattern
- the new patternpublic void visitToken(DetailAST ast)
AbstractCheck
visitToken
in class AbstractCheck
ast
- the token to processCopyright © 2001–2018. All rights reserved.