// ** This file was generated with DemFGen (vers:4/12/2011) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of Node */ public class Node{ protected final String v; /** Construct a(n) Node Instance */ public Node(String v){ this.v = v; } /** Is the given object Equal to this Node? */ public boolean equals(Object o){ if(!(o instanceof Node))return false; if(o == this)return true; Node oo = (Node)o; return (((Object)v).equals(oo.v)); } /** Parse an instance of Node from the given String */ public static Node parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_Node(); } /** Parse an instance of Node from the given Stream */ public static Node parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Node(); } /** Parse an instance of Node from the given Reader */ public static Node parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Node(); } /** Field Class for Node.v */ public static class v extends edu.neu.ccs.demeterf.Fields.any{} /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } /** DGP method from Class Print */ public String print(){ return gen.Print.PrintM(this); } /** DGP method from Class ToStr */ public String toStr(){ return gen.ToStr.ToStrM(this); } /** Updater for field Node.v */ public Node updateV(String _v){ return new Node(_v); } /** Getter for field Node.v */ public String getV(){ return v; } }