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

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

public class SubtypeCons
extends SubtypeList
implements ConsList

Representation of SubtypeCons


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

SubtypeCons

public SubtypeCons(TypeUse first,
                   SubtypeList rest)
Construct a(n) SubtypeCons Instance

Method Detail

equals

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

Overrides:
equals in class java.lang.Object

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class SubtypeList

print

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

Overrides:
print in class SubtypeList

getRest

public SubtypeList getRest()
Getter for field SubtypeCons.rest


getFirst

public TypeUse getFirst()
Getter for field SubtypeCons.first