org.apache.cocoon.components.treeprocessor.variables
Class PreparedVariableResolver
java.lang.Object
org.apache.cocoon.components.treeprocessor.variables.VariableResolver
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:
- $Id: PreparedVariableResolver.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Field Summary |
protected static org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.Token |
CLOSE_TOKEN
|
protected static org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.Token |
COLON_TOKEN
|
protected static org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.Token |
EMPTY_TOKEN
|
protected boolean |
needsMapStack
|
protected static org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.Token |
OPEN_TOKEN
|
protected List |
tokens
|
COLON_TOKEN
protected static final org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.Token COLON_TOKEN
OPEN_TOKEN
protected static final org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.Token OPEN_TOKEN
CLOSE_TOKEN
protected static final org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.Token CLOSE_TOKEN
EMPTY_TOKEN
protected static final org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.Token EMPTY_TOKEN
tokens
protected List tokens
needsMapStack
protected boolean needsMapStack
PreparedVariableResolver
public PreparedVariableResolver()
PreparedVariableResolver
public PreparedVariableResolver(String expression,
ServiceManager manager)
throws org.apache.cocoon.sitemap.PatternException
getManager
public ServiceManager getManager()
setManager
public void setManager(ServiceManager manager)
setExpression
public void setExpression(String expr)
throws org.apache.cocoon.sitemap.PatternException
- Specified by:
setExpression
in class VariableResolver
- Throws:
org.apache.cocoon.sitemap.PatternException
getNewVariableToken
protected org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.Token getNewVariableToken(String variable)
getNewModuleToken
protected org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.Token getNewModuleToken(String moduleName)
throws org.apache.cocoon.sitemap.PatternException
- Throws:
org.apache.cocoon.sitemap.PatternException
resolve
public final String resolve(InvokeContext context,
Map objectModel)
throws org.apache.cocoon.sitemap.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:
org.apache.cocoon.sitemap.PatternException
dispose
public final void dispose()
- Specified by:
dispose
in interface Disposable
- See Also:
Disposable.dispose()
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.