Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.cst.internal
Class TransformationTreePool

java.lang.Object
  extended by eu.esdihumboldt.cst.internal.TransformationTreePool

public class TransformationTreePool
extends Object

Pool for transformation trees.

Author:
Simon Templer

Constructor Summary
TransformationTreePool(Alignment alignment, ContextMatcher matcher)
          Create a transformation tree pool.
 
Method Summary
 TransformationTree getTree(TypeDefinition targetType)
          Get a transformation tree from the pool.
 void releaseTree(TransformationTree tree)
          Release a tree to the pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformationTreePool

public TransformationTreePool(Alignment alignment,
                              ContextMatcher matcher)
Create a transformation tree pool.

Parameters:
alignment - the associated alignment
matcher - the context matcher to apply to a created tree
Method Detail

getTree

public TransformationTree getTree(TypeDefinition targetType)
Get a transformation tree from the pool.

Parameters:
targetType - the target type for the transformation tree
Returns:
the transformation tree

releaseTree

public void releaseTree(TransformationTree tree)
Release a tree to the pool.

Parameters:
tree - the transformation tree that is no longer needed

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d