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 LITERAL_NATIVE token is:
<module name="IllegalToken">
<property name="tokens" value="LITERAL_NATIVE"/>
</module>
| Method Summary | |
|---|---|
| int[] | getAcceptableTokens() |
| int[] | getDefaultTokens() |
| void | visitToken(DetailAST aAST) |