freemarker.template.instruction
Class CallInstruction

java.lang.Object
  |
  +--freemarker.template.instruction.EmptyInstruction
        |
        +--freemarker.template.instruction.CallInstruction
All Implemented Interfaces:
Instruction, java.io.Serializable, TemplateProcessor

public final class CallInstruction
extends EmptyInstruction
implements java.io.Serializable

An instruction representing a function call.

Version:
$Id: CallInstruction.java,v 1.28 2003/11/27 11:36:45 run2000 Exp $
See Also:
Serialized Form

Fields inherited from interface freemarker.template.instruction.Instruction
BREAK, CASE, COMMENT_END, COMPRESS_END, DEFAULT, ELSE, ELSEIF, FOREACH_END, FUNCTION_END, IF_END, LIST_END, NONE, NOPARSE_END, SWITCH_END, TRANSFORM_END
 
Constructor Summary
CallInstruction(MethodCall methodCall)
          Constructor for a function call.
 
Method Summary
 void process(TemplateModelRoot modelRoot, java.io.Writer out, TemplateRuntimeHandler eventHandler)
          Process this <call ...
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class freemarker.template.instruction.EmptyInstruction
callBuilder, getEndType, isEndInstruction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallInstruction

public CallInstruction(MethodCall methodCall)
Constructor for a function call.
Parameters:
methodCall - the method call expression representing the arguments to be passed to the function
Throws:
NullPointerException - the method call expression was null
Method Detail

process

public void process(TemplateModelRoot modelRoot,
                    java.io.Writer out,
                    TemplateRuntimeHandler eventHandler)
             throws java.io.IOException
Process this <call ... >
Parameters:
modelRoot - the root node of the data model
out - a Writer to send the output to
eventHandler - a TemplateEventAdapter for handling any events that occur during processing

toString

public java.lang.String toString()
Returns a string representation of the object.
Overrides:
toString in class java.lang.Object
Returns:
a String representing this instruction subtree