final public void OptionalWeights(SrndQuery q) throws ParseException {Token weight=null;label_8:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case CARAT:;break;default:jj_la1[9] = jj_gen;break label_8;}jj_consume_token(CARAT);weight = jj_consume_token(NUMBER);float f;try {f = Float.parseFloat(weight.image);} catch (Exception floatExc) {{if (true) throw new ParseException(BOOST_ERROR_MESSAGE + weight.image + " (" + floatExc + ")");}}if (f <= 0.0) {{if (true) throw new ParseException(BOOST_ERROR_MESSAGE + weight.image);}}q.setWeight(f * q.getWeight()); }}

public void OptionalWeights(SrndQuery q){Token weight = null;while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.CARAT:;break;default:jj_la1[9] = jj_gen;goto label_8;}Jj_consume_token(RegexpToken.CARAT);weight = Jj_consume_token(RegexpToken.NUMBER);float f;try{f = float.Parse(weight.Image);}catch (Exception floatExc){{ if (true) throw new ParseException(boostErrorMessage + weight.Image + " (" + floatExc + ")"); }}if (f <= 0.0){{ if (true) throw new ParseException(boostErrorMessage + weight.Image); }}q.Weight = (f * q.Weight); }label_8: ;}
