org.apache.cocoon.components.treeprocessor.variables
Class PreparedVariableResolver

java.lang.Object
  extended by org.apache.cocoon.components.treeprocessor.variables.VariableResolver
      extended by org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver
All Implemented Interfaces:
Disposable

public final class PreparedVariableResolver
extends VariableResolver
implements Disposable

Prepared implementation of VariableResolver for fast evaluation.

Version:
CVS $Id: PreparedVariableResolver.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Upayavira

Field Summary
protected  boolean needsMapStack
           
protected  List tokens
           
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.variables.VariableResolver
EMPTY_MAP, originalExpr
 
Constructor Summary
PreparedVariableResolver(String expr, ComponentManager manager)
          Deprecated. use the version with ServiceManager
PreparedVariableResolver(String expr, ServiceManager manager)
           
 
Method Summary
 void dispose()
           
 String resolve(InvokeContext context, Map objectModel)
          Resolve all {...} patterns using the values given in the list of maps and the object model.
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.variables.VariableResolver
buildMap, buildParameters, equals, hashCode, resolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

tokens

protected List tokens

needsMapStack

protected boolean needsMapStack
Constructor Detail

PreparedVariableResolver

public PreparedVariableResolver(String expr,
                                ComponentManager manager)
                         throws PatternException
Deprecated. use the version with ServiceManager

Throws:
PatternException

PreparedVariableResolver

public PreparedVariableResolver(String expr,
                                ServiceManager manager)
                         throws PatternException
Throws:
PatternException
Method Detail

resolve

public final String resolve(InvokeContext context,
                            Map objectModel)
                     throws PatternException
Description copied from class: VariableResolver
Resolve all {...} patterns using the values given in the list of maps and the object model.

Specified by:
resolve in class VariableResolver
Throws:
PatternException

dispose

public final void dispose()
Specified by:
dispose in interface Disposable


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.