return new int[] {TokenTypes.IMPORT, TokenTypes.STATIC_IMPORT};
}
@Override
public void visitToken( DetailAST aAST ) {
final FullIdent imp;
if (aAST.getType() == TokenTypes.IMPORT) {
imp = FullIdent.createFullIdentBelow(aAST);
} else {
// handle case of static imports of method names
imp = FullIdent.createFullIdent(aAST.getFirstChild().getNextSibling());
}
final String text = imp.getText();
if (isIllegalImport(text)) {
final String message = buildError(text);
log(aAST.getLineNo(), aAST.getColumnNo(), message, text);
}
}