public class PackageAnnotationCheck extends Check
According to the Java JLS 3rd ed.
The JLS does not enforce the placement of package annotations. This placement may vary based on implementation. The JLS does highly recommend that all package annotations are placed in the package-info.java file. See Java Language specification, sections 7.4.1.1.
| Constructor and Description |
|---|
PackageAnnotationCheck() |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getAcceptableTokens()
The configurable token set.
|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
int[] |
getRequiredTokens()
The tokens that this check must be registered for.
|
void |
visitToken(DetailAST ast)
Called to process a token.
|
beginTree, destroy, finishTree, getClassLoader, getFileContents, getLine, getLines, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic PackageAnnotationCheck()
public int[] getDefaultTokens()
getDefaultTokens in class CheckTokenTypespublic int[] getRequiredTokens()
getRequiredTokens in class CheckTokenTypespublic int[] getAcceptableTokens()
getAcceptableTokens in class CheckTokenTypespublic void visitToken(DetailAST ast)
visitToken in class Checkast - the token to processCopyright © 2001–2015. All rights reserved.