public class PropertyCatalogCheck extends AbstractAddonsCheck
Constructor and Description |
---|
PropertyCatalogCheck()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
beginTree(DetailAST pRootAst) |
Set<Integer> |
getRelevantTokens()
The tokens which this check is interested in.
|
protected void |
leaveKnownType(BinaryName pBinaryClassName,
DetailAST pAst)
Called after leaving a CLASS_DEF, INTERFACE_DEF, ANNOTATION_DEF, or ENUM_DEF token and the type's binary class
name is known.
|
void |
setBaseDir(String pBaseDir) |
void |
setCaseSensitive(boolean pCaseSensitive) |
void |
setEnumArgument(boolean pEnumArgument) |
void |
setExcludedFields(String pExcludedFields) |
void |
setPropertyFile(String pTemplate) |
void |
setPropertyFileEncoding(String pEncoding) |
void |
setReportDuplicates(boolean pReportDuplicates) |
void |
setReportOrphans(boolean pReportOrphans) |
void |
setSelection(String pSelection) |
protected void |
visitKnownType(BinaryName pBinaryClassName,
DetailAST pAst)
Called after visiting a CLASS_DEF, INTERFACE_DEF, ANNOTATION_DEF, or ENUM_DEF token and successfully determining
the type's binary class name.
|
protected void |
visitToken(BinaryName pBinaryClassName,
DetailAST pAst)
Called to process a token.
|
finishTree, finishTree, getApiFixer, getClassDeclarationPosition, getCurrentBinaryName, getCurrentSimpleName, getDefaultTokens, getMyPackage, getRequiredTokens, leaveToken, leaveToken, visitToken
destroy, getAcceptableTokens, getClassLoader, getFileContents, getLine, getLines, getTabWidth, getTokenNames, init, isCommentNodesRequired, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public void beginTree(DetailAST pRootAst)
beginTree
in class AbstractAddonsCheck
public Set<Integer> getRelevantTokens()
AbstractAddonsCheck
getRelevantTokens
in class AbstractAddonsCheck
protected void leaveKnownType(@Nonnull BinaryName pBinaryClassName, @Nonnull DetailAST pAst)
AbstractAddonsCheck
AbstractAddonsCheck.leaveToken(BinaryName, DetailAST)
will be
performed in addition to (before) this one.leaveKnownType
in class AbstractAddonsCheck
pBinaryClassName
- the binary class name of the visited typepAst
- the token being completedpublic void setBaseDir(String pBaseDir)
public void setCaseSensitive(boolean pCaseSensitive)
public void setEnumArgument(boolean pEnumArgument)
public void setExcludedFields(String pExcludedFields)
public void setPropertyFile(String pTemplate)
public void setPropertyFileEncoding(String pEncoding)
public void setReportDuplicates(boolean pReportDuplicates)
public void setReportOrphans(boolean pReportOrphans)
public void setSelection(String pSelection)
protected void visitKnownType(@Nonnull BinaryName pBinaryClassName, @Nonnull DetailAST pAst)
AbstractAddonsCheck
AbstractAddonsCheck.visitToken(BinaryName, DetailAST)
will
be performed in addition to (after) this one.visitKnownType
in class AbstractAddonsCheck
pBinaryClassName
- the binary class name of the visited typepAst
- the token to processprotected void visitToken(@Nullable BinaryName pBinaryClassName, @Nonnull DetailAST pAst)
AbstractAddonsCheck
visitToken
in class AbstractAddonsCheck
pBinaryClassName
- the currently active binary class namepAst
- the token to process