public interface UDF extends Function, Dumpable, Member, Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
RETURN_FORMAT_JSON |
static int |
RETURN_FORMAT_PLAIN |
static int |
RETURN_FORMAT_SERIALIZE |
static int |
RETURN_FORMAT_WDDX |
static int |
RETURN_FORMAT_XML |
Modifier and Type | Method and Description |
---|---|
Object |
call(PageContext pageContext,
Object[] args,
boolean doIncludePath)
call user defined Funcion with parameters as Object Array
|
Object |
callWithNamedValues(PageContext pageContext,
Struct values,
boolean doIncludePath)
call user defined Funcion with a hashmap of named values
|
UDF |
duplicate() |
Object |
getDefaultValue(PageContext pc,
int index) |
String |
getDescription() |
String |
getDisplayName() |
FunctionArgument[] |
getFunctionArguments()
return all function arguments of this UDF
|
String |
getFunctionName() |
String |
getHint() |
Struct |
getMetaData(PageContext pc) |
boolean |
getOutput() |
Component |
getOwnerComponent()
Deprecated.
|
PageSource |
getPageSource() |
int |
getReturnFormat() |
int |
getReturnType() |
String |
getReturnTypeAsString() |
Boolean |
getSecureJson()
returns null when not defined
|
Boolean |
getVerifyClient()
returns null when not defined
|
Object |
implementation(PageContext pageContext)
abstract method for the function Body
|
toDumpData
static final int RETURN_FORMAT_WDDX
static final int RETURN_FORMAT_JSON
static final int RETURN_FORMAT_PLAIN
static final int RETURN_FORMAT_SERIALIZE
static final int RETURN_FORMAT_XML
Object implementation(PageContext pageContext) throws Throwable
pageContext
- Throwable
FunctionArgument[] getFunctionArguments()
PageException
Object getDefaultValue(PageContext pc, int index) throws PageException
pc
- index
- PageException
String getFunctionName()
boolean getOutput()
int getReturnType()
int getReturnFormat()
Boolean getSecureJson()
Boolean getVerifyClient()
String getReturnTypeAsString()
String getDescription()
Object callWithNamedValues(PageContext pageContext, Struct values, boolean doIncludePath) throws PageException
pageContext
- values
- named valuesdoIncludePath
- PageException
Object call(PageContext pageContext, Object[] args, boolean doIncludePath) throws PageException
pageContext
- args
- parameters for the functiondoIncludePath
- PageException
String getDisplayName()
PageSource getPageSource()
Struct getMetaData(PageContext pc) throws PageException
PageException
Component getOwnerComponent()
Copyright © 2015 Lucee