koala.dynamicjava.interpreter.context
Class VariableContext.LinkFactory

java.lang.Object
  |
  +--koala.dynamicjava.interpreter.context.VariableContext.LinkFactory
Enclosing class:
VariableContext

protected static class VariableContext.LinkFactory
extends java.lang.Object

To manage the creation of scopes and links


Field Summary
protected static java.lang.ref.WeakReference[] links
          The table used to recycle the links
protected static int SIZE
          The table size
 
Constructor Summary
protected VariableContext.LinkFactory()
           
 
Method Summary
static VariableContext.Link createLink(VariableContext.Link next)
          Creates a new link
static void recycle(VariableContext.Link l)
          Notifies the factory to recycle the given link
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE

protected static final int SIZE
The table size

links

protected static final java.lang.ref.WeakReference[] links
The table used to recycle the links
Constructor Detail

VariableContext.LinkFactory

protected VariableContext.LinkFactory()
Method Detail

createLink

public static VariableContext.Link createLink(VariableContext.Link next)
Creates a new link

recycle

public static void recycle(VariableContext.Link l)
Notifies the factory to recycle the given link


Copyright ? 2001 Stephane Hillion. All Rights Reserved.