freemarker.template.instruction
Class CallInstruction

java.lang.Object
  extended by freemarker.template.instruction.EmptyInstruction
      extended by freemarker.template.instruction.CallInstruction
All Implemented Interfaces:
Instruction, TemplateProcessor, java.io.Serializable

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

An instruction representing a function call.

Version:
$Id: CallInstruction.java 1162 2013-04-20 12:04:32Z run2000 $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface freemarker.template.instruction.Instruction
Instruction.EndType
 
Nested classes/interfaces inherited from interface freemarker.template.TemplateProcessor
TemplateProcessor.ExitStatus
 
Constructor Summary
CallInstruction(MethodCall methodCall)
          Constructor for a function call.
 
Method Summary
 TemplateProcessor.ExitStatus process(TemplateProcessorParameters p)
          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:
java.lang.NullPointerException - the method call expression was null
Method Detail

process

public TemplateProcessor.ExitStatus process(TemplateProcessorParameters p)
                                     throws java.io.IOException
Process this <call ... >

Specified by:
process in interface TemplateProcessor
Parameters:
p - template processing parameters
Returns:
an exit code indicating how the process terminated, typically used for short-circuiting template processing
Throws:
java.io.IOException - an IO error occurred 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