docs: public final void unaryExpressionNotPlusMinus() throws RecognitionException {
  		int unaryExpressionNotPlusMinus_StartIndex = input.index();
  
  		try {
  			if ( state.backtracking>0 && alreadyParsedRule(input, 125) ) { return; }
  
  			// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1204:5: ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? )
  			int alt159=4;
  			switch ( input.LA(1) ) {
  			case 126:
  				{
  				alt159=1;
  				}
  				break;
  			case 29:
  				{
  				alt159=2;
  				}
  				break;
  			case 36:
  				{
  				switch ( input.LA(2) ) {
  				case 65:
  				case 67:
  				case 71:
  				case 77:
  				case 85:
  				case 92:
  				case 94:
  				case 105:
  					{
  					int LA159_20 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case Identifier:
  					{
  					int LA159_21 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 40:
  					{
  					int LA159_22 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 44:
  					{
  					int LA159_23 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 41:
  					{
  					int LA159_24 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 45:
  					{
  					int LA159_25 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 126:
  					{
  					int LA159_26 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 29:
  					{
  					int LA159_27 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 36:
  					{
  					int LA159_28 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 53:
  					{
  					int LA159_29 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 111:
  					{
  					int LA159_30 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 108:
  					{
  					int LA159_31 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 80:
  					{
  					int LA159_32 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 79:
  					{
  					int LA159_33 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 70:
  					{
  					int LA159_34 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case DecimalLiteral:
  				case HexLiteral:
  				case OctalLiteral:
  					{
  					int LA159_35 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case FloatingPointLiteral:
  					{
  					int LA159_36 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case CharacterLiteral:
  					{
  					int LA159_37 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case StringLiteral:
  					{
  					int LA159_38 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 82:
  				case 115:
  					{
  					int LA159_39 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 98:
  					{
  					int LA159_40 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 97:
  					{
  					int LA159_41 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				case 118:
  					{
  					int LA159_42 = input.LA(3);
  					if ( (synpred240_Java()) ) {
  						alt159=3;
  					}
  					else if ( (true) ) {
  						alt159=4;
  					}
  
  					}
  					break;
  				default:
  					if (state.backtracking>0) {state.failed=true; return;}
  					int nvaeMark = input.mark();
  					try {
  						input.consume();
  						NoViableAltException nvae =
  							new NoViableAltException("", 159, 3, input);
  						throw nvae;
  					} finally {
  						input.rewind(nvaeMark);
  					}
  				}
  				}
  				break;
  			case CharacterLiteral:
  			case DecimalLiteral:
  			case FloatingPointLiteral:
  			case HexLiteral:
  			case Identifier:
  			case OctalLiteral:
  			case StringLiteral:
  			case 53:
  			case 65:
  			case 67:
  			case 70:
  			case 71:
  			case 77:
  			case 79:
  			case 80:
  			case 82:
  			case 85:
  			case 92:
  			case 94:
  			case 97:
  			case 98:
  			case 105:
  			case 108:
  			case 111:
  			case 115:
  			case 118:
  				{
  				alt159=4;
  				}
  				break;
  			default:
  				if (state.backtracking>0) {state.failed=true; return;}
  				NoViableAltException nvae =
  					new NoViableAltException("", 159, 0, input);
  				throw nvae;
  			}
  			switch (alt159) {
  				case 1 :
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1204:9: '~' unaryExpression
  					{
  					match(input,126,FOLLOW_126_in_unaryExpressionNotPlusMinus5549); if (state.failed) return;
  					pushFollow(FOLLOW_unaryExpression_in_unaryExpressionNotPlusMinus5551);
  					unaryExpression();
  					state._fsp--;
  					if (state.failed) return;
  					}
  					break;
  				case 2 :
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1205:8: '!' unaryExpression
  					{
  					match(input,29,FOLLOW_29_in_unaryExpressionNotPlusMinus5560); if (state.failed) return;
  					pushFollow(FOLLOW_unaryExpression_in_unaryExpressionNotPlusMinus5562);
  					unaryExpression();
  					state._fsp--;
  					if (state.failed) return;
  					}
  					break;
  				case 3 :
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1206:9: castExpression
  					{
  					pushFollow(FOLLOW_castExpression_in_unaryExpressionNotPlusMinus5572);
  					castExpression();
  					state._fsp--;
  					if (state.failed) return;
  					}
  					break;
  				case 4 :
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1207:9: primary ( selector )* ( '++' | '--' )?
  					{
  					pushFollow(FOLLOW_primary_in_unaryExpressionNotPlusMinus5582);
  					primary();
  					state._fsp--;
  					if (state.failed) return;
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1207:17: ( selector )*
  					loop157:
  					while (true) {
  						int alt157=2;
  						int LA157_0 = input.LA(1);
  						if ( (LA157_0==47||LA157_0==59) ) {
  							alt157=1;
  						}
  
  						switch (alt157) {
  						case 1 :
  							// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1207:17: selector
  							{
  							pushFollow(FOLLOW_selector_in_unaryExpressionNotPlusMinus5584);
  							selector();
  							state._fsp--;
  							if (state.failed) return;
  							}
  							break;
  
  						default :
  							break loop157;
  						}
  					}
  
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1207:27: ( '++' | '--' )?
  					int alt158=2;
  					int LA158_0 = input.LA(1);
  					if ( (LA158_0==41||LA158_0==45) ) {
  						alt158=1;
  					}
  					switch (alt158) {
  						case 1 :
  							// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:
  							{
  							if ( input.LA(1)==41||input.LA(1)==45 ) {
  								input.consume();
  								state.errorRecovery=false;
  								state.failed=false;
  							}
  							else {
  								if (state.backtracking>0) {state.failed=true; return;}
  								MismatchedSetException mse = new MismatchedSetException(null,input);
  								throw mse;
  							}
  							}
  							break;
  
  					}
  
  					}
  					break;
  
  			}
  		}
  		catch (RecognitionException re) {
  			reportError(re);
  			recover(input,re);
  		}
  		finally {
  			// do for sure before leaving
  			if ( state.backtracking>0 ) { memoize(input, 125, unaryExpressionNotPlusMinus_StartIndex); }
  
  		}
  	}