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

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

public class ImportCons
extends ImportList
implements ConsList

Representation of ImportCons


Nested Class Summary
static class ImportCons.first
          Field Class for ImportCons.first
static class ImportCons.rest
          Field Class for ImportCons.rest
 
Constructor Summary
ImportCons(Import first, ImportList rest)
          Construct a(n) ImportCons Instance
 
Method Summary
 ImportList append(ImportList l)
           
 boolean equals(java.lang.Object o)
          Is the given object Equal to this ImportCons?
 Import getFirst()
          Getter for field ImportCons.first
 ImportList getRest()
          Getter for field ImportCons.rest
static ImportCons parse(java.io.InputStream inpt)
          Parse an instance of ImportCons from the given Stream
static ImportCons parse(java.io.Reader inpt)
          Parse an instance of ImportCons from the given Reader
static ImportCons parse(java.lang.String inpt)
          Parse an instance of ImportCons 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

ImportCons

public ImportCons(Import first,
                  ImportList rest)
Construct a(n) ImportCons Instance

Method Detail

equals

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

Overrides:
equals in class java.lang.Object

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

append

public ImportList append(ImportList l)
Overrides:
append in class ImportList

toString

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

print

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

Overrides:
print in class ImportList

getRest

public ImportList getRest()
Getter for field ImportCons.rest


getFirst

public Import getFirst()
Getter for field ImportCons.first