org.codehaus.groovy.grails.web.taglib
Class GroovyPageTagBody

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.lang.Closure
          extended by org.codehaus.groovy.grails.web.taglib.GroovyPageTagBody
All Implemented Interfaces:
groovy.lang.GroovyCallable, groovy.lang.GroovyObject, java.io.Serializable, java.lang.Cloneable, java.lang.Runnable, java.util.concurrent.Callable

public class GroovyPageTagBody
extends groovy.lang.Closure

Represents the body of a tag and captures its output returning the result when invoked.

Since:
0.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class groovy.lang.Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
 
Constructor Summary
GroovyPageTagBody(java.lang.Object owner, GrailsWebRequest webRequest, groovy.lang.Closure<?> bodyClosure)
           
GroovyPageTagBody(java.lang.Object owner, GrailsWebRequest webRequest, groovy.lang.Closure<?> bodyClosure, boolean preferSubChunkWhenWritingToOtherBuffer)
           
 
Method Summary
 java.lang.Object call()
           
 java.lang.Object call(java.lang.Object... args)
           
 java.lang.Object call(java.lang.Object arguments)
           
 java.lang.Object doCall()
           
 java.lang.Object doCall(java.lang.Object arguments)
           
 int getMaximumNumberOfParameters()
           
 java.lang.Class[] getParameterTypes()
           
 boolean isPreferSubChunkWhenWritingToOtherBuffer()
           
 void setPreferSubChunkWhenWritingToOtherBuffer(boolean prefer)
           
 
Methods inherited from class groovy.lang.Closure
asWritable, clone, curry, curry, dehydrate, getDelegate, getDirective, getOwner, getProperty, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampoline
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, invokeMethod, setMetaClass
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyPageTagBody

public GroovyPageTagBody(java.lang.Object owner,
                         GrailsWebRequest webRequest,
                         groovy.lang.Closure<?> bodyClosure)

GroovyPageTagBody

public GroovyPageTagBody(java.lang.Object owner,
                         GrailsWebRequest webRequest,
                         groovy.lang.Closure<?> bodyClosure,
                         boolean preferSubChunkWhenWritingToOtherBuffer)
Method Detail

isPreferSubChunkWhenWritingToOtherBuffer

public boolean isPreferSubChunkWhenWritingToOtherBuffer()

setPreferSubChunkWhenWritingToOtherBuffer

public void setPreferSubChunkWhenWritingToOtherBuffer(boolean prefer)

doCall

public java.lang.Object doCall()

doCall

public java.lang.Object doCall(java.lang.Object arguments)

call

public java.lang.Object call()
Specified by:
call in interface java.util.concurrent.Callable
Overrides:
call in class groovy.lang.Closure

call

public java.lang.Object call(java.lang.Object... args)
Overrides:
call in class groovy.lang.Closure

call

public java.lang.Object call(java.lang.Object arguments)
Overrides:
call in class groovy.lang.Closure

getMaximumNumberOfParameters

public int getMaximumNumberOfParameters()
Overrides:
getMaximumNumberOfParameters in class groovy.lang.Closure

getParameterTypes

public java.lang.Class[] getParameterTypes()
Overrides:
getParameterTypes in class groovy.lang.Closure