// ** This file was generated with DemFGen (vers:4/15/2011)

package nwf;

import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.lib.*;
import scg.*;
import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.*;
import java.util.Iterator;





/** Representation of Node */
public class Node{
    protected 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 nwf.ParseException{
        return new nwf.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 nwf.ParseException{
        return new nwf.TheParser(inpt).parse_Node();
    }
    /** Parse an instance of Node from the given Reader */
    public static Node parse(java.io.Reader inpt) throws nwf.ParseException{
        return new nwf.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 nwf.Display.DisplayM(this); }
    /** DGP method from Class Print */
    public String print(){ return nwf.Print.PrintM(this); }
    /** DGP method from Class ToStr */
    public String toStr(){ return nwf.ToStr.ToStrM(this); }
    /** DGP method from Class PrintToString */
    public String toString(){ return nwf.PrintToString.PrintToStringM(this); }
    /** DGP method from Class HashCode */
    public int hashCode(){ return nwf.HashCode.HashCodeM(this); }
    /** Setter for field Node.v */
    public void setV(String _v){ v = _v; }
    /** Getter for field Node.v */
    public String getV(){ return v; }

}


