public void _orElse ( ) { List < QueryToken > tokens = getCurrentWhereTokens ( ) ; if ( tokens . isEmpty ( ) ) { return ; } if ( tokens . get ( tokens . size ( ) - 1 ) instanceof QueryOperatorToken ) { throw new IllegalStateException ( "Cannot add OR, previous token was already an operator token." ) ; } tokens . add ( QueryOperatorToken . OR ) ; }
Add an OR to the query