src/main/java/ca/gobits/bnf/index/BNFIndexFactoryJSON.java
public boolean isKey(final BNFToken token) {

        boolean key = false;
        String value = token.getStringValue();

        if (value != null && token.getNextToken() != null) {
            BNFToken nextToken = token.getNextToken();
            key = ":".equals(nextToken.getStringValue());
        }

        return key;
    }
/**
     * Returns with token is a key token.
     * @param token -
     * @return boolean
     */
Returns with token is a key token.
@param token
@return boolean
Returns with token is a key token . @param token @return boolean
public boolean isKey(final BNFToken token) {
        boolean key = false;
        String value = token.getStringValue();
        if (value != null && token.getNextToken() != null) {
            BNFToken nextToken = token.getNextToken();
            key = ":".equals(nextToken.getStringValue());
        }
        return key;
    }
public boolean isKey ( final BNFToken token ) { boolean key = false ; String value = token . getStringValue ( ) ; if ( value != null && token . getNextToken ( ) != null ) { BNFToken nextToken = token . getNextToken ( ) ; key = ":" . equals ( nextToken . getStringValue ( ) ) ; } return key ; }
Returns with token is a key token.
Returns with token is a key token .