public class LostInstanceCheck extends AbstractAddonsCheck
new
are actually used for something. Just being
assigned to a variable or passed as a parameter is enough. A full data flow analysis is not performed.
Constructor and Description |
---|
LostInstanceCheck() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.Integer> |
getRelevantTokens()
The tokens which this check is interested in.
|
void |
init() |
void |
visitToken(BinaryName pBinaryClassName,
com.puppycrawl.tools.checkstyle.api.DetailAST pAst)
Called to process a token.
|
beginTree, finishTree, finishTree, getAcceptableTokens, getApiFixer, getClassDeclarationPosition, getCurrentBinaryName, getCurrentSimpleName, getDefaultTokens, getMyPackage, getRequiredTokens, leaveKnownType, leaveToken, leaveToken, visitKnownType, visitToken
clearMessages, destroy, getClassLoader, getFileContents, getLine, getLines, getMessages, getTabWidth, getTokenNames, isCommentNodesRequired, log, log, log, setClassLoader, setFileContents, setTabWidth, setTokens
finishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity
public java.util.Set<java.lang.Integer> getRelevantTokens()
AbstractAddonsCheck
getRelevantTokens
in class AbstractAddonsCheck
public void init()
init
in class com.puppycrawl.tools.checkstyle.api.AbstractCheck
public void visitToken(@Nullable BinaryName pBinaryClassName, @Nonnull com.puppycrawl.tools.checkstyle.api.DetailAST pAst)
AbstractAddonsCheck
visitToken
in class AbstractAddonsCheck
pBinaryClassName
- the currently active binary class namepAst
- the token to process