src/main/java/utils/Common.java
/**
     * When {@link #processRecursiveAllKeywords(String, KeywordCollection)} finds a NOT operator send the keywords here
     * <p>Check if there's a group after operator NOT.</p>
     * Process keyword or group as NOT
     *
     * @param text search this text for matching keywords
     * @param keywords reference to {@link KeywordCollection} container that has a string of keywords.
     *                The final result of the match is written to {@link KeywordCollection#result}.
     *                If there are keywords left to process they will be put in {@link KeywordCollection#keywords}
     * @return true if there are keywords left to process or false if no more left.
     */
When  #processRecursiveAllKeywords(String, KeywordCollection) finds a NOT operator send the keywords here
Check if there's a group after operator NOT.
Process keyword or group as NOT

@param text search this text for matching keywords
@param keywords reference to  KeywordCollection container that has a string of keywords.
The final result of the match is written to  KeywordCollection#result.
If there are keywords left to process they will be put in  KeywordCollection#keywords
@return true if there are keywords left to process or false if no more left.
When #processRecursiveAllKeywords ( String KeywordCollection ) finds a NOT operator send the keywords here Check if there ' s a group after operator NOT . Process keyword or group as NOT @param text search this text for matching keywords @param keywords reference to KeywordCollection container that has a string of keywords . The final result of the match is written to KeywordCollection#result . If there are keywords left to process they will be put in KeywordCollection#keywords @return true if there are keywords left to process or false if no more left .
private static boolean processNOT(String text, KeywordCollection keywords) {
        int firstSpace;
        String tempKeyword;
        KeywordCollection tempKeywordCollection;
        boolean isMoreToProcess;
        tempKeyword = keywords.getKeywords().substring(4);
        if (tempKeyword.charAt(0) == '{') {
            tempKeywordCollection = new KeywordCollection(tempKeyword);
            isMoreToProcess = processGroup(text, tempKeywordCollection);
            keywords.setResult(tempKeywordCollection.getResult());
            keywords.setKeywords(tempKeywordCollection.getKeywords());
            return isMoreToProcess;
        }
        firstSpace = tempKeyword.indexOf(" ");
        if (firstSpace == -1) {
            keywords.setResult(processSingleKeyword(text, tempKeyword));
            return false;
        } else {
            tempKeyword = tempKeyword.substring(0, firstSpace);
            keywords.setResult(processSingleKeyword(text, tempKeyword));
            keywords.setKeywords(keywords.getKeywords().substring(firstSpace + 5));
            return true;
        }
    }
private static boolean processNOT ( String text , KeywordCollection keywords ) { int firstSpace ; String tempKeyword ; KeywordCollection tempKeywordCollection ; boolean isMoreToProcess ; tempKeyword = keywords . getKeywords ( ) . substring ( 4 ) ; if ( tempKeyword . charAt ( 0 ) == '{' ) { tempKeywordCollection = new KeywordCollection ( tempKeyword ) ; isMoreToProcess = processGroup ( text , tempKeywordCollection ) ; keywords . setResult ( tempKeywordCollection . getResult ( ) ) ; keywords . setKeywords ( tempKeywordCollection . getKeywords ( ) ) ; return isMoreToProcess ; } firstSpace = tempKeyword . indexOf ( " " ) ; if ( firstSpace == - 1 ) { keywords . setResult ( processSingleKeyword ( text , tempKeyword ) ) ; return false ; } else { tempKeyword = tempKeyword . substring ( 0 , firstSpace ) ; keywords . setResult ( processSingleKeyword ( text , tempKeyword ) ) ; keywords . setKeywords ( keywords . getKeywords ( ) . substring ( firstSpace + 5 ) ) ; return true ; } }
When {@link #processRecursiveAllKeywords(String, KeywordCollection)} finds a NOT operator send the keywords here
 <p>Check if there's a group after operator NOT.</p>
 Process keyword or group as NOT
When { @link #processRecursiveAllKeywords ( String KeywordCollection ) } finds a NOT operator send the keywords here <p > Check if there ' s a group after operator NOT . < / p > Process keyword or group as NOT
// check if there's a group after NOT // There are no operators before the keywords. //'NOT keyword(firstSpace)'