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

java.lang.Object
  extended by edu.neu.ccs.demeterf.demfgen.classes.FieldOrSyntax
      extended by edu.neu.ccs.demeterf.demfgen.classes.Field

public class Field
extends FieldOrSyntax

Representation of Field


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

Field

public Field(ident name,
             TypeUse type)
Construct a(n) Field Instance

Method Detail

equals

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

Overrides:
equals in class java.lang.Object

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

isSyntax

public boolean isSyntax()
Specified by:
isSyntax in class FieldOrSyntax

print

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

Overrides:
print in class FieldOrSyntax

getType

public TypeUse getType()
Getter for field Field.type


getName

public ident getName()
Getter for field Field.name