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

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

public class Mach
extends java.lang.Object

Representation of Mach


Nested Class Summary
static class Mach.rsts
          Field Class for Mach.rsts
static class Mach.sts
          Field Class for Mach.sts
static class Mach.trans
          Field Class for Mach.trans
 
Constructor Summary
Mach(Map<java.lang.Integer,Set<State>> sts, Map<Set<State>,java.lang.Integer> rsts, Map<MTrans,java.lang.Integer> trans)
          Construct a(n) Mach Instance
Mach(Set<State> st)
           
 
Method Summary
 Mach addState(int i, Set<State> s)
           
 Mach addTrans(int f, char c, int t)
           
 boolean equals(java.lang.Object o)
          Is the given object Equal to this Mach?
 java.lang.String finalArray(List<FinalState> fins, boolean nowarn)
           
 Map<Set<State>,java.lang.Integer> getRsts()
          Getter for field Mach.rsts
 Map<java.lang.Integer,Set<State>> getSts()
          Getter for field Mach.sts
 Map<MTrans,java.lang.Integer> getTrans()
          Getter for field Mach.trans
 int lookup(Set<State> s)
           
static Mach parse(java.io.InputStream inpt)
          Parse an instance of Mach from the given Stream
static Mach parse(java.io.Reader inpt)
          Parse an instance of Mach from the given Reader
static Mach parse(java.lang.String inpt)
          Parse an instance of Mach from the given String
 java.lang.String smallTransArray()
           
 Set<State> state(int i)
           
 int states()
           
 java.lang.String toString()
          DGP method from Class PrintToString
 int trans(int i, int c)
           
 java.lang.String transArray()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Mach

public Mach(Map<java.lang.Integer,Set<State>> sts,
            Map<Set<State>,java.lang.Integer> rsts,
            Map<MTrans,java.lang.Integer> trans)
Construct a(n) Mach Instance


Mach

public Mach(Set<State> st)
Method Detail

equals

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

Overrides:
equals in class java.lang.Object

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

parse

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

Throws:
ParseException

state

public Set<State> state(int i)

states

public int states()

trans

public int trans(int i,
                 int c)

addState

public Mach addState(int i,
                     Set<State> s)

addTrans

public Mach addTrans(int f,
                     char c,
                     int t)

lookup

public int lookup(Set<State> s)

transArray

public java.lang.String transArray()

smallTransArray

public java.lang.String smallTransArray()

finalArray

public java.lang.String finalArray(List<FinalState> fins,
                                   boolean nowarn)

toString

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

Overrides:
toString in class java.lang.Object

getTrans

public Map<MTrans,java.lang.Integer> getTrans()
Getter for field Mach.trans


getRsts

public Map<Set<State>,java.lang.Integer> getRsts()
Getter for field Mach.rsts


getSts

public Map<java.lang.Integer,Set<State>> getSts()
Getter for field Mach.sts