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

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.treeprocessor.AbstractProcessingNode
          extended byorg.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode
All Implemented Interfaces:
ExecutionContext, Locatable, LogEnabled, ParameterizableProcessingNode, ProcessingNode, ThreadSafe

public class CallFunctionNode
extends AbstractProcessingNode
implements ParameterizableProcessingNode

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

Since:
March 13, 2002
Version:
CVS $Id: CallFunctionNode.java 233343 2005-08-18 18:06:44Z sylvain $
Author:
Ovidiu Predescu

Field Summary
protected  String[] argumentNames
           
protected  VariableResolver continuationId
           
protected  VariableResolver functionName
           
protected  Interpreter interpreter
           
protected  Map parameters
           
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
componentName, executor, location
 
Constructor Summary
CallFunctionNode(VariableResolver functionName, VariableResolver continuationId, String[] argumentNames)
           
 
Method Summary
 boolean invoke(Environment env, InvokeContext context)
          Process environment.
 void setInterpreter(Interpreter interp)
           
 void setParameters(Map parameterMap)
          Set the parameters of this node as a Map of VariableResolvers that will be resolved at process-time.
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
getLocation, getType, setLocation, setSitemapExecutor
 
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
 
Methods inherited from interface org.apache.cocoon.components.treeprocessor.ProcessingNode
getLocation
 

Field Detail

parameters

protected Map parameters

functionName

protected VariableResolver functionName

continuationId

protected VariableResolver continuationId

argumentNames

protected String[] argumentNames

interpreter

protected Interpreter interpreter
Constructor Detail

CallFunctionNode

public CallFunctionNode(VariableResolver functionName,
                        VariableResolver continuationId,
                        String[] argumentNames)
Method Detail

setParameters

public void setParameters(Map parameterMap)
Description copied from interface: ParameterizableProcessingNode
Set the parameters of this node as a Map of VariableResolvers that will be resolved at process-time.

Specified by:
setParameters in interface ParameterizableProcessingNode

setInterpreter

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

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-2005 The Apache Software Foundation. All Rights Reserved.