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

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

public class TypeUseCons
extends TypeUseList
implements ConsList

Representation of TypeUseCons


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

Constructor Detail

TypeUseCons

public TypeUseCons(TypeUse first,
                   TypeUseList rest)
Construct a(n) TypeUseCons Instance

Method Detail

equals

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

Overrides:
equals in class java.lang.Object

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

length

public int length()
Overrides:
length in class TypeUseList

toString

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

toList

public List<java.lang.String> toList()
Overrides:
toList in class TypeUseList

toTUList

public List<TypeUse> toTUList()
Overrides:
toTUList in class TypeUseList

print

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

Overrides:
print in class TypeUseList

getRest

public TypeUseList getRest()
Getter for field TypeUseCons.rest


getFirst

public TypeUse getFirst()
Getter for field TypeUseCons.first