// ** This file was generated with DemFGen (vers:05/23/2010)

package edu.neu.ccs.demeterf.demfgen.classes;

import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.demfgen.*;
import edu.neu.ccs.demeterf.demfgen.dgp.DGPFunc;
import edu.neu.ccs.demeterf.demfgen.traversals.Travs;
import edu.neu.ccs.demeterf.demfgen.pcdgp.PCDGPFunc;
import edu.neu.ccs.demeterf.dispatch.*;
import edu.neu.ccs.demeterf.*;
import edu.neu.ccs.demeterf.demfgen.ClassHier.InhrtPair;
import edu.neu.ccs.demeterf.demfgen.DemFGenMain;
import java.io.*;
import java.io.FileInputStream;
import edu.neu.ccs.demeterf.util.Util;
import edu.neu.ccs.demeterf.util.CLI;





/** Representation of Include */
public class Include{
    protected final DoGen gen;
    protected final String file;

    /** Construct a(n) Include Instance */
    public Include(DoGen gen, String file){
        this.gen = gen;
        this.file = file;
    }
    /** Is the given object Equal to this Include? */
    public boolean equals(Object o){
        if(!(o instanceof Include))return false;
        if(o == this)return true;
        Include oo = (Include)o;
        return (((Object)gen).equals(oo.gen))&&(((Object)file).equals(oo.file));
    }
    /** Parse an instance of Include from the given String */
    public static Include parse(String inpt) throws edu.neu.ccs.demeterf.demfgen.classes.ParseException{
        return new edu.neu.ccs.demeterf.demfgen.classes.TheParser(new java.io.StringReader(inpt)).parse_Include();
    }
    /** Parse an instance of Include from the given Stream */
    public static Include parse(java.io.InputStream inpt) throws edu.neu.ccs.demeterf.demfgen.classes.ParseException{
        return new edu.neu.ccs.demeterf.demfgen.classes.TheParser(inpt).parse_Include();
    }
    /** Parse an instance of Include from the given Reader */
    public static Include parse(java.io.Reader inpt) throws edu.neu.ccs.demeterf.demfgen.classes.ParseException{
        return new edu.neu.ccs.demeterf.demfgen.classes.TheParser(inpt).parse_Include();
    }

    /** Field Class for Include.gen */
    public static class gen extends edu.neu.ccs.demeterf.Fields.any{}
    /** Field Class for Include.file */
    public static class file extends edu.neu.ccs.demeterf.Fields.any{}

    /** DGP method from Class Print */
    public String print(){ return edu.neu.ccs.demeterf.demfgen.classes.Print.PrintM(this); }
    /** DGP method from Class ToStr */
    public String toStr(){ return edu.neu.ccs.demeterf.demfgen.classes.ToStr.ToStrM(this); }
    /** DGP method from Class ToXML */
    public String toXML(){ return edu.neu.ccs.demeterf.demfgen.classes.ToXML.ToXMLM(this); }
    /** Updater for field Include.gen */
    public Include updateGen(DoGen _gen){
        return new Include(_gen, file);
    }
    /** Updater for field Include.file */
    public Include updateFile(String _file){
        return new Include(gen, _file);
    }
    /** Getter for field Include.gen */
    public DoGen getGen(){ return gen; }
    /** Getter for field Include.file */
    public String getFile(){ return file; }

}