// ** This class was generated with DemFGen (vers:12/06/2009)

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

import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.*;
import edu.neu.ccs.demeterf.demfgen.classes.*;
import edu.neu.ccs.demeterf.demfgen.classes.Package;




/** Representation of GrpChar */
public class GrpChar extends GrpPart{
    protected final char ch;

    /** Construct a(n) GrpChar Instance */
    public GrpChar(char ch){
        this.ch = ch;
    }
    /** Is the given object Equal to this GrpChar? */
    public boolean equals(Object o){
        if(!(o instanceof GrpChar))return false;
        if(o == this)return true;
        GrpChar oo = (GrpChar)o;
        return (((Object)ch).equals(oo.ch));
    }
    /** Parse an instance of GrpChar from the given String */
    public static GrpChar parse(String inpt) throws ParseException{
        return new TheParser(new java.io.StringReader(inpt)).parse_GrpChar();
    }
    /** Parse an instance of GrpChar from the given Stream */
    public static GrpChar parse(java.io.InputStream inpt) throws ParseException{
        return new TheParser(inpt).parse_GrpChar();
    }
    /** Parse an instance of GrpChar from the given Reader */
    public static GrpChar parse(java.io.Reader inpt) throws ParseException{
        return new TheParser(inpt).parse_GrpChar();
    }

    /** Field Class for GrpChar.ch */
    public static class ch extends edu.neu.ccs.demeterf.Fields.any{}

        public boolean contains(char c){ return ch == c; }

    /** DGP method from Class PrintToString */
    public String toString(){ return edu.neu.ccs.demeterf.lexer.classes.PrintToString.PrintToStringM(this); }
    /** Getter for field GrpChar.ch */
    public char getCh(){ return ch; }

}