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

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

public class TypeDefCons
extends TypeDefList
implements ConsList

Representation of TypeDefCons


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

Constructor Detail

TypeDefCons

public TypeDefCons(TypeDef first,
                   TypeDefList rest)
Construct a(n) TypeDefCons Instance

Method Detail

equals

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

Overrides:
equals in class java.lang.Object

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

toList

public List<TypeDef> toList()
Overrides:
toList in class TypeDefList

print

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

Overrides:
print in class TypeDefList

getRest

public TypeDefList getRest()
Getter for field TypeDefCons.rest


getFirst

public TypeDef getFirst()
Getter for field TypeDefCons.first