railo.runtime.type
Class Closure

java.lang.Object
  extended by railo.runtime.component.MemberSupport
      extended by railo.runtime.type.UDFImpl
          extended by railo.runtime.type.Closure
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Member, Dumpable, Function, Duplicable, Sizeable, UDF, UDFPlus

public class Closure
extends UDFImpl

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface railo.runtime.type.UDF
RETURN_FORMAT_JSON, RETURN_FORMAT_PLAIN, RETURN_FORMAT_SERIALIZE, RETURN_FORMAT_WDDX, RETURN_FORMAT_XML
 
Constructor Summary
Closure()
           
Closure(UDFProperties properties)
           
Closure(UDFProperties properties, Variables variables)
           
 
Method Summary
 Object call(PageContext pc, Object[] args, boolean doIncludePath)
          call user defined Funcion with parameters as Object Array
 Object callWithNamedValues(PageContext pc, Struct values, boolean doIncludePath)
          call user defined Funcion with a hashmap of named values
 UDF duplicate(ComponentImpl c)
           
 Struct getMetaData(PageContext pc)
           
 void readExternal(ObjectInput in)
           
 DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
          method to print out information to a object as HTML
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class railo.runtime.type.UDFImpl
argumentCollection, argumentCollection, clone, duplicate, duplicate, equals, equals, getBufferOutput, getDefaultValue, getDefaultValue, getDescription, getDisplayName, getFunctionArguments, getFunctionName, getHint, getIndex, getMeta, getOutput, getOwnerComponent, getPageSource, getReturnFormat, getReturnFormatAsString, getReturnType, getReturnTypeAsString, getSecureJson, getValue, getVerifyClient, implementation, setOwnerComponent, sizeOf, toDumpData, toKey, toReturnFormat, toReturnFormat, toReturnFormat, toString
 
Methods inherited from class railo.runtime.component.MemberSupport
getAccess, setAccess, setAccess
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface railo.runtime.component.Member
getAccess
 

Constructor Detail

Closure

public Closure()

Closure

public Closure(UDFProperties properties)

Closure

public Closure(UDFProperties properties,
               Variables variables)
Method Detail

duplicate

public UDF duplicate(ComponentImpl c)
Overrides:
duplicate in class UDFImpl

callWithNamedValues

public Object callWithNamedValues(PageContext pc,
                                  Struct values,
                                  boolean doIncludePath)
                           throws PageException
Description copied from interface: UDF
call user defined Funcion with a hashmap of named values

Specified by:
callWithNamedValues in interface UDF
Overrides:
callWithNamedValues in class UDFImpl
values - named values
Returns:
return value of the function
Throws:
PageException

call

public Object call(PageContext pc,
                   Object[] args,
                   boolean doIncludePath)
            throws PageException
Description copied from interface: UDF
call user defined Funcion with parameters as Object Array

Specified by:
call in interface UDF
Overrides:
call in class UDFImpl
args - parameters for the function
Returns:
return value of the function
Throws:
PageException

toDumpData

public DumpData toDumpData(PageContext pageContext,
                           int maxlevel,
                           DumpProperties dp)
Description copied from interface: Dumpable
method to print out information to a object as HTML

Specified by:
toDumpData in interface Dumpable
Overrides:
toDumpData in class UDFImpl
Returns:
HTML print out

getMetaData

public Struct getMetaData(PageContext pc)
                   throws PageException
Specified by:
getMetaData in interface UDF
Overrides:
getMetaData in class UDFImpl
Throws:
PageException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class UDFImpl
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class UDFImpl
Throws:
IOException


Copyright © 2012 Railo