slogo.language
Class SubroutineFactory

java.lang.Object
  extended by slogo.language.SubroutineFactory

public class SubroutineFactory
extends java.lang.Object

Factory for keeping all the subroutines in one mapping

Author:
tshishikub

Field Summary
private static SubroutineFactory ourInstance
           
static java.util.Map<java.lang.String,Subroutine> subroutineNameToSubroutine
           
 
Constructor Summary
private SubroutineFactory()
           
 
Method Summary
static SubroutineFactory getInstance()
           
static Subroutine getSubroutine(IdentifierToken t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ourInstance

private static SubroutineFactory ourInstance

subroutineNameToSubroutine

public static java.util.Map<java.lang.String,Subroutine> subroutineNameToSubroutine
Constructor Detail

SubroutineFactory

private SubroutineFactory()
Method Detail

getInstance

public static SubroutineFactory getInstance()

getSubroutine

public static Subroutine getSubroutine(IdentifierToken t)