protected static TimeBase parseTimeComponent(String text) { matchIndefinite.reset(text); if (matchIndefinite.matches()) return new TimeIndefinite(); matchUnitTime.reset(text); if (matchUnitTime.matches()) { String val = matchUnitTime.group(1); String units = matchUnitTime.group(6); double time = 0; try { time = Double.parseDouble(val); } catch (Exception e) {} if (units.equals("ms")) time *= .001; else if (units.equals("min")) time *= 60; else if (units.equals("h")) time *= 3600; return new TimeDiscrete(time); } return null; }
protected static TimeBase parseTimeComponent(String text) { matchIndefinite.reset(text); if (matchIndefinite.matches()) return new TimeIndefinite(); matchUnitTime.reset(text); if (matchUnitTime.matches()) { String val = matchUnitTime.group(1); String units = matchUnitTime.group(6); double time = 0; try { time = Double.parseDouble(val); } catch (Exception e) {} if (units.equals("ms")) time *= .001; else if (units.equals("min")) time *= 60; else if (units.equals("h")) time *= 3600; return new TimeDiscrete(time); } return null; }
protected static TimeBase parseTimeComponent(String text) { matchIndefinite.reset(text); if (matchIndefinite.matches()) return new TimeIndefinite(); matchUnitTime.reset(text); if (matchUnitTime.matches()) { String val = matchUnitTime.group(1); String units = matchUnitTime.group(6); double time = 0; try { time = Double.parseDouble(val); } catch (Exception e) {} if (units.equals("ms")) time *= .001; else if (units.equals("min")) time *= 60; else if (units.equals("h")) time *= 3600; return new TimeDiscrete(time); } return null; }
protected static TimeBase parseTimeComponent(String text) { matchIndefinite.reset(text); if (matchIndefinite.matches()) return new TimeIndefinite(); matchUnitTime.reset(text); if (matchUnitTime.matches()) { String val = matchUnitTime.group(1); String units = matchUnitTime.group(6); double time = 0; try { time = Double.parseDouble(val); } catch (Exception e) {} if (units.equals("ms")) time *= .001; else if (units.equals("min")) time *= 60; else if (units.equals("h")) time *= 3600; return new TimeDiscrete(time); } return null; }
final public TimeDiscrete EventTime() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case MOUSE_OVER: jj_consume_token(MOUSE_OVER); break; case WHEN_NOT_ACTIVE: jj_consume_token(WHEN_NOT_ACTIVE); break; default: jj_la1[5] = jj_gen; jj_consume_token(-1); throw new ParseException(); } //For now, map all events to the zero time {if (true) return new TimeDiscrete(0);} throw new Error("Missing return statement in function"); }
{if (true) return new TimeDiscrete(value);} throw new Error("Missing return statement in function");
jjtc000 = false; {if ("" != null) return new TimeDiscrete(0);} } finally { if (jjtc000) {
jjtc000 = false; {if ("" != null) return new TimeDiscrete(0);} } finally { if (jjtc000) {
{if ("" != null) return new TimeDiscrete(value);} } catch (Throwable jjte000) { if (jjtc000) {
{if ("" != null) return new TimeDiscrete(value);} } catch (Throwable jjte000) { if (jjtc000) {
{if (true) return new TimeDiscrete(value);} } catch (Throwable jjte000) { if (jjtc000) {
final public TimeDiscrete EventTime() throws ParseException { /*@bgen(jjtree) EventTime */ ASTEventTime jjtn000 = new ASTEventTime(JJTEVENTTIME); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case MOUSE_OVER: jj_consume_token(MOUSE_OVER); break; case WHEN_NOT_ACTIVE: jj_consume_token(WHEN_NOT_ACTIVE); break; default: jj_la1[5] = jj_gen; jj_consume_token(-1); throw new ParseException(); } jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; //For now, map all events to the zero time {if (true) return new TimeDiscrete(0);} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } throw new Error("Missing return statement in function"); }