import edu.neu.ccs.demeter.dj.*; import edu.neu.ccs.demeter.*; class Weight { protected float v; public float get_v() { return v; } public void set_v(float new_v) { v = new_v; } public Weight() { super(); } public Weight(float v) { super(); set_v(v); } public static Weight parse(java.io.Reader in) throws ParseException { return new Parser(in)._Weight(); } public static Weight parse(java.io.InputStream in) throws ParseException { return new Parser(in)._Weight(); } public static Weight parse(String s) { try { return parse(new java.io.StringReader(s)); } catch (ParseException e) { throw new RuntimeException(e.toString()); } } void universal_trv0_bef(UniversalVisitor _v_) { ((UniversalVisitor) _v_).before(this); } void universal_trv0_aft(UniversalVisitor _v_) { ((UniversalVisitor) _v_).after(this); } void universal_trv0(UniversalVisitor _v_) { universal_trv0_bef(_v_); ((UniversalVisitor) _v_).before_v(this, v); ((UniversalVisitor) _v_).after_v(this, v); universal_trv0_aft(_v_); } void __trav_print_Formula_trv_bef(PrintVisitor __v0) { ((UniversalVisitor) __v0).before(this); } void __trav_print_Formula_trv_aft(PrintVisitor __v0) { ((UniversalVisitor) __v0).after(this); } void __trav_print_Formula_trv(PrintVisitor __v0) { __trav_print_Formula_trv_bef(__v0); ((PrintVisitor) __v0).before_v(this, v); ((UniversalVisitor) __v0).after_v(this, v); __trav_print_Formula_trv_aft(__v0); } }