org.apache.cocoon.components.treeprocessor.sitemap
Class CallFunctionNode

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
          extended by org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode
All Implemented Interfaces:
Composable, Configurable, LogEnabled, ThreadSafe, ProcessingNode, Locatable

public class CallFunctionNode
extends AbstractProcessingNode
implements Configurable, Composable

Node handler for calling functions and resuming continuations in the control flow layer.

Since:
March 13, 2002
Version:
CVS $Id: CallFunctionNode.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Ovidiu Predescu

Field Summary
protected  VariableResolver continuationId
           
protected  VariableResolver functionName
           
protected  Interpreter interpreter
           
protected  ComponentManager manager
           
protected  List parameters
           
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
location
 
Fields inherited from interface org.apache.cocoon.components.treeprocessor.ProcessingNode
OBJECT_SOURCE_RESOLVER
 
Constructor Summary
CallFunctionNode(VariableResolver functionName, VariableResolver continuationId)
           
 
Method Summary
 void compose(ComponentManager manager)
           
 void configure(Configuration config)
          Obtain the configuration specific to this node type and update the internal state.
 boolean invoke(Environment env, InvokeContext context)
          Process environment.
static List resolveList(List expressions, ComponentManager manager, InvokeContext context, Map objectModel)
           
 void setInterpreter(Interpreter interp)
           
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
getLocation, getSourceResolver, setLocation
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameters

protected List parameters

functionName

protected VariableResolver functionName

continuationId

protected VariableResolver continuationId

manager

protected ComponentManager manager

interpreter

protected Interpreter interpreter
Constructor Detail

CallFunctionNode

public CallFunctionNode(VariableResolver functionName,
                        VariableResolver continuationId)
Method Detail

resolveList

public static List resolveList(List expressions,
                               ComponentManager manager,
                               InvokeContext context,
                               Map objectModel)
                        throws PatternException
Throws:
PatternException

setInterpreter

public void setInterpreter(Interpreter interp)
                    throws Exception
Throws:
Exception

configure

public void configure(Configuration config)
               throws ConfigurationException
Obtain the configuration specific to this node type and update the internal state.

Specified by:
configure in interface Configurable
Parameters:
config - a Configuration value
Throws:
ConfigurationException - if an error occurs

compose

public void compose(ComponentManager manager)
Specified by:
compose in interface Composable

invoke

public boolean invoke(Environment env,
                      InvokeContext context)
               throws Exception
Description copied from interface: ProcessingNode
Process environment.

Specified by:
invoke in interface ProcessingNode
Throws:
Exception


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