if (!(obj instanceof BasicLexerState))
return false;
final BasicLexerState tmp = (BasicLexerState) obj;
if (tmp.lexicalState != lexicalState)
return false;
final StateStack activeStack = getActiveStack();
final StateStack otherActiveStack = tmp.getActiveStack();
if (!(activeStack == otherActiveStack || activeStack != null
&& activeStack.equals(otherActiveStack)))
return false;
return true;
}