elan.parser
Class ToFactory

java.lang.Object
  |
  +--elan.parser.ToFactory

public class ToFactory
extends java.lang.Object

Provides a means to remember all of the entered procedure calls. Procedure calls must begin with TO (though case insensitive).


Method Summary
static java.lang.Object get(java.lang.String s)
           
static ToFactory getInstance()
           
static To getTo(IdentifierToken idt)
          Returns the To object mapped to the IdentifierToken
static To setTo(IdentifierToken idt, StrictInstructionList sil)
          Maps an Identifier Token (i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ToFactory getInstance()

setTo

public static To setTo(IdentifierToken idt,
                       StrictInstructionList sil)
Maps an Identifier Token (i.e. subfunction name) to its instruction list.


getTo

public static To getTo(IdentifierToken idt)
Returns the To object mapped to the IdentifierToken


get

public static java.lang.Object get(java.lang.String s)