}
/** {@inheritDoc} */
public void visitToken(DetailAST aAST)
{
final FullIdent ident;
boolean isStatic;
if (aAST.getType() == TokenTypes.IMPORT) {
ident = FullIdent.createFullIdentBelow(aAST);
isStatic = false;
}
else {
ident = FullIdent.createFullIdent(
(DetailAST) aAST.getFirstChild().getNextSibling());
isStatic = true;
}
if (ident != null) {
final String name = ident.getText();
final int groupIdx = getGroupNumber(name);
final int line = ident.getLineNo();
if (groupIdx > mLastGroup) {
if (!mBeforeFirstImport && mSeparated) {
// This check should be made more robust to handle
// comments and imports that span more than one line.