de.hunsicker.jalopy.language
Class CompositeFactory

java.lang.Object
  |
  +--de.hunsicker.jalopy.language.CompositeFactory

public class CompositeFactory
extends java.lang.Object

This class creates instances of all the Factories used to generate JavaNodes, Nodes, & Extended Tokens. It is also responsible for maintaining and clearing the cache for these factories


Nested Class Summary
 class CompositeFactory.ExtendedTokenFactory
           
 
Constructor Summary
CompositeFactory()
           
 
Method Summary
 void addCached(java.lang.Class class1, java.lang.Object cached)
           
 void clear()
          Clears all objects that were created in the factories
 java.lang.Object getCached(java.lang.Class class1)
          A factory calls this method to return an object that was cached
 CompositeFactory.ExtendedTokenFactory getExtendedTokenFactory()
           
 JavaNodeFactory getJavaNodeFactory()
           
 NodeFactory getNodeFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeFactory

public CompositeFactory()
Method Detail

getCached

public java.lang.Object getCached(java.lang.Class class1)
A factory calls this method to return an object that was cached

Parameters:
class1 - The class used to index
Returns:

addCached

public void addCached(java.lang.Class class1,
                      java.lang.Object cached)

getExtendedTokenFactory

public CompositeFactory.ExtendedTokenFactory getExtendedTokenFactory()

getJavaNodeFactory

public JavaNodeFactory getJavaNodeFactory()

getNodeFactory

public NodeFactory getNodeFactory()

clear

public void clear()
Clears all objects that were created in the factories



Copyright © 1997-2005 Jalopy. All Rights Reserved.