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

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

public class FieldCons
extends FieldList
implements ConsList

Representation of FieldCons


Nested Class Summary
static class FieldCons.first
          Field Class for FieldCons.first
static class FieldCons.rest
          Field Class for FieldCons.rest
 
Constructor Summary
FieldCons(FieldOrSyntax first, FieldList rest)
          Construct a(n) FieldCons Instance
 
Method Summary
 FieldList append(FieldList l)
           
 FieldList append(List<FieldOrSyntax> l)
           
 boolean equals(java.lang.Object o)
          Is the given object Equal to this FieldCons?
 FieldOrSyntax getFirst()
          Getter for field FieldCons.first
 FieldList getRest()
          Getter for field FieldCons.rest
 boolean isEmpty()
           
 List<Field> justFields()
           
static FieldCons parse(java.io.InputStream inpt)
          Parse an instance of FieldCons from the given Stream
static FieldCons parse(java.io.Reader inpt)
          Parse an instance of FieldCons from the given Reader
static FieldCons parse(java.lang.String inpt)
          Parse an instance of FieldCons from the given String
 java.lang.String print()
          DGP method from Class Print
 List<FieldOrSyntax> toList()
           
 
Methods inherited from class edu.neu.ccs.demeterf.demfgen.classes.FieldList
push
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldCons

public FieldCons(FieldOrSyntax first,
                 FieldList rest)
Construct a(n) FieldCons Instance

Method Detail

equals

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

Overrides:
equals in class java.lang.Object

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

justFields

public List<Field> justFields()
Specified by:
justFields in class FieldList

toList

public List<FieldOrSyntax> toList()
Specified by:
toList in class FieldList

append

public FieldList append(FieldList l)
Specified by:
append in class FieldList

append

public FieldList append(List<FieldOrSyntax> l)
Specified by:
append in class FieldList

isEmpty

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

print

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

Overrides:
print in class FieldList

getRest

public FieldList getRest()
Getter for field FieldCons.rest


getFirst

public FieldOrSyntax getFirst()
Getter for field FieldCons.first