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

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

public class IncludeCons
extends IncludeList
implements ConsList

Representation of IncludeCons


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

Constructor Detail

IncludeCons

public IncludeCons(Include first,
                   IncludeList rest)
Construct a(n) IncludeCons Instance

Method Detail

equals

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

Overrides:
equals in class java.lang.Object

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in class IncludeList

print

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

Overrides:
print in class IncludeList

getRest

public IncludeList getRest()
Getter for field IncludeCons.rest


getFirst

public Include getFirst()
Getter for field IncludeCons.first