com.puppycrawl.tools.checkstyle.checks.coding
public class IllegalTokenCheck extends Check
Checks for illegal tokens.
Rational: Certain language features are often lead to hard to maintain code or are non-obvious to novice developers. Others may be discouraged in certain frameworks, such as not having native methods in EJB components.
An example of how to configure the check is:
<module name="IllegalToken"/>
An example of how to configure the check to forbid a {@link TokenTypes#LITERAL_NATIVE LITERAL_NATIVE} token is:
<module name="IllegalToken"> <property name="tokens" value="LITERAL_NATIVE"/> </module>
Method Summary | |
---|---|
int[] | getAcceptableTokens()
{@inheritDoc} |
int[] | getDefaultTokens()
{@inheritDoc} |
void | visitToken(DetailAST aAST)
{@inheritDoc} |