edu.neu.ccs.demeterf.demfgen.classes
Class PkgCons

java.lang.Object
  extended by edu.neu.ccs.demeterf.demfgen.classes.PkgList
      extended by edu.neu.ccs.demeterf.demfgen.classes.PkgCons
All Implemented Interfaces:
ConsList

public class PkgCons
extends PkgList
implements ConsList

Representation of PkgCons


Nested Class Summary
static class PkgCons.id
          Field Class for PkgCons.id
static class PkgCons.rest
          Field Class for PkgCons.rest
 
Constructor Summary
PkgCons(ident id, PkgList rest)
          Construct a(n) PkgCons Instance
 
Method Summary
 boolean equals(java.lang.Object o)
          Is the given object Equal to this PkgCons?
 ident getId()
          Getter for field PkgCons.id
 PkgList getRest()
          Getter for field PkgCons.rest
static PkgCons parse(java.io.InputStream inpt)
          Parse an instance of PkgCons from the given Stream
static PkgCons parse(java.io.Reader inpt)
          Parse an instance of PkgCons from the given Reader
static PkgCons parse(java.lang.String inpt)
          Parse an instance of PkgCons from the given String
 java.lang.String print()
          DGP method from Class Print
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PkgCons

public PkgCons(ident id,
               PkgList rest)
Construct a(n) PkgCons Instance

Method Detail

equals

public boolean equals(java.lang.Object o)
Is the given object Equal to this PkgCons?

Overrides:
equals in class java.lang.Object

parse

public static PkgCons parse(java.lang.String inpt)
                     throws ParseException
Parse an instance of PkgCons from the given String

Throws:
ParseException

parse

public static PkgCons parse(java.io.InputStream inpt)
                     throws ParseException
Parse an instance of PkgCons from the given Stream

Throws:
ParseException

parse

public static PkgCons parse(java.io.Reader inpt)
                     throws ParseException
Parse an instance of PkgCons from the given Reader

Throws:
ParseException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

print

public java.lang.String print()
DGP method from Class Print

Overrides:
print in class PkgList

getRest

public PkgList getRest()
Getter for field PkgCons.rest


getId

public ident getId()
Getter for field PkgCons.id