edu.neu.ccs.demeterf.lexer.classes
Class Trans

java.lang.Object
  extended by edu.neu.ccs.demeterf.lexer.classes.Trans

public class Trans
extends java.lang.Object

Representation of Trans


Nested Class Summary
static class Trans.frm
          Field Class for Trans.frm
static class Trans.l
          Field Class for Trans.l
static class Trans.to
          Field Class for Trans.to
 
Field Summary
static Label EPSILON
           
 
Constructor Summary
Trans(char c, State f, State t)
           
Trans(Label l, State frm, State to)
          Construct a(n) Trans Instance
 
Method Summary
 boolean equals(java.lang.Object o)
          Is the given object Equal to this Trans?
 State getFrm()
          Getter for field Trans.frm
 Label getL()
          Getter for field Trans.l
 State getTo()
          Getter for field Trans.to
 boolean isEpsilon()
           
static Trans parse(java.io.InputStream inpt)
          Parse an instance of Trans from the given Stream
static Trans parse(java.io.Reader inpt)
          Parse an instance of Trans from the given Reader
static Trans parse(java.lang.String inpt)
          Parse an instance of Trans from the given String
 java.lang.String toString()
          DGP method from Class PrintToString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EPSILON

public static final Label EPSILON
Constructor Detail

Trans

public Trans(Label l,
             State frm,
             State to)
Construct a(n) Trans Instance


Trans

public Trans(char c,
             State f,
             State t)
Method Detail

equals

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

Overrides:
equals in class java.lang.Object

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

isEpsilon

public boolean isEpsilon()

toString

public java.lang.String toString()
DGP method from Class PrintToString

Overrides:
toString in class java.lang.Object

getTo

public State getTo()
Getter for field Trans.to


getFrm

public State getFrm()
Getter for field Trans.frm


getL

public Label getL()
Getter for field Trans.l