com.puppycrawl.tools.checkstyle.checks.imports
Class ImportControlCheck
- Configurable, Contextualizable
public class ImportControlCheck
Check that controls what packages can be imported in each package. Useful
for ensuring that application layering is not violated. Ideas on how the
check can be improved include support for:
- Change the default policy that if a package being checked does not
match any guards, then it is allowed. Currently defaults to disallowed.
beginTree , destroy , finishTree , getAcceptableTokens , getClassLoader , getDefaultTokens , getFileContents , getLines , getRequiredTokens , getTabWidth , getTokenNames , init , leaveToken , log , log , setClassLoader , setFileContents , setMessages , setTabWidth , setTokens , visitToken |
getId , getMessageBundle , getSeverity , getSeverityLevel , log , log , log , log , log , log , log , log , log , log , log , setId , setSeverity |
setFile
public void setFile(String aName)
Set the parameter for the file containing the import control
configuration. It will cause the file to be loaded.
aName
- the name of the file to load.