core: import edu.neu.ccs.demeter.dj.*; import edu.neu.ccs.demeter.*; add: class Money { protected float price; public float get_price() {{ return price; }} public void set_price(float new_price) {{ price = new_price; }} public constructor Money() {{ super(); }} public constructor Money(float price) {{ super(); set_price(price); }} public static Money parse(java.io.Reader in) throws ParseException {{ return new Parser(in)._Money(); }} public static Money parse(java.io.InputStream in) throws ParseException {{ return new Parser(in)._Money(); }} public static Money 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_price(this, price); ((UniversalVisitor) _v_).after_price(this, price); universal_trv0_aft(_v_); } }} }