java.lang.Object
com.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.Check
com.puppycrawl.tools.checkstyle.checks.AbstractImportCheck
- All Implemented Interfaces:
- com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable
- Direct Known Subclasses:
- AvoidStarImportCheck, IllegalImportCheck, IllegalInstantiationCheck, JavadocMethodCheck, RedundantImportCheck, UnusedImportsCheck
- public abstract class AbstractImportCheck
- extends com.puppycrawl.tools.checkstyle.api.Check
Abstract class that provides helper functionality for determining an import
name. It caches the import name in the token context to improve
performance.
- Version:
- 1.0
| Fields inherited from class com.puppycrawl.tools.checkstyle.api.Check |
|
| Fields inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean |
|
| Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check |
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractImportCheck
public AbstractImportCheck()
getImportText
protected com.puppycrawl.tools.checkstyle.api.FullIdent getImportText(com.puppycrawl.tools.checkstyle.api.DetailAST aAST)
- Return the name of the import associated with a specifed DetailAST.