// ** This class was generated with DemFGen (vers:09/22/2009) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of Literal */ public class Literal{ protected final Sign s; protected final Variable v; /** Construct a(n) Literal Instance */ public Literal(Sign s, Variable v){ this.s = s; this.v = v; } /** Is the given object Equal to this Literal? */ public boolean equals(Object o){ if(!(o instanceof Literal))return false; if(o == this)return true; Literal oo = (Literal)o; return (((Object)s).equals(oo.s))&&(((Object)v).equals(oo.v)); } /** Parse an instance of Literal from the given String */ public static Literal parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Literal(); } /** Parse an instance of Literal from the given Stream */ public static Literal parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Literal(); } /** Parse an instance of Literal from the given Reader */ public static Literal parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Literal(); } /** Field Class for Literal.s */ public static class s extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Literal.v */ public static class v extends edu.neu.ccs.demeterf.control.Fields.any{} /** DGP method from Class ToStr */ public String toStr(){ return gen.ToStr.ToStrM(this); } /** DGP method from Class Print */ public String print(){ return gen.Print.PrintM(this); } /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } }