|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object beanface.el.functor.TagLibFunctions
public class TagLibFunctions
A collection of static methods to be exposed as Tag Library functions.
Constructor Summary | |
---|---|
TagLibFunctions()
|
Method Summary | ||
---|---|---|
static java.lang.Object |
constructor(java.lang.String className,
int paramCount,
boolean deferred)
Build a functor for a constructor. |
|
static
|
dynamicMethod(T base,
java.lang.String methodName,
int paramCount,
boolean deferred)
Build a functor for a dynamic method. |
|
static java.lang.Object |
invokeConstructor(java.lang.String className,
java.lang.Object params)
Invoke a constructor. |
|
static
|
invokeDynamic(T base,
java.lang.String methodName,
java.lang.Object params)
Invoke a dynamic method |
|
static java.lang.Object |
invokeStatic(java.lang.String className,
java.lang.String methodName,
java.lang.Object params)
Invoke a static method. |
|
static FunctionParameters |
params(java.lang.Object... params)
Construct a FunctionParameters object wrapping the given
parameters. |
|
static FunctionParameters |
params0()
|
|
static FunctionParameters |
params1(java.lang.Object a)
|
|
static FunctionParameters |
params2(java.lang.Object a,
java.lang.Object b)
|
|
static FunctionParameters |
params3(java.lang.Object a,
java.lang.Object b,
java.lang.Object c)
|
|
static FunctionParameters |
params4(java.lang.Object a,
java.lang.Object b,
java.lang.Object c,
java.lang.Object d)
|
|
static java.lang.Object |
staticField(java.lang.String className,
java.lang.String fieldName)
Obtain the value of a static field. |
|
static java.lang.Object |
staticMethod(java.lang.String className,
java.lang.String methodName,
int paramCount,
boolean deferred)
Build a functor for a static method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagLibFunctions()
Method Detail |
---|
public static <T> java.lang.Object dynamicMethod(T base, java.lang.String methodName, int paramCount, boolean deferred)
T
- The type of the base object.base
- The object on which the method will be invoked.methodName
- The name of the dynamic method.paramCount
- The explicit number of parameters to be applied.deferred
- flag to request a deferred functor instead of a
standard one.
paramCount
is 0 and deferred
is
false).public static java.lang.Object constructor(java.lang.String className, int paramCount, boolean deferred)
className
- The fully qualified name of the class to construct.paramCount
- The explicit number of parameters to be applied.deferred
- flag to request a deferred functor instead of a
standard one.
paramCount
is 0 and deferred
is
false).public static java.lang.Object staticMethod(java.lang.String className, java.lang.String methodName, int paramCount, boolean deferred)
className
- The fully qualified name of the class containing the method.methodName
- The name of the static method.paramCount
- The explicit number of parameters to be applied.deferred
- flag to request a deferred functor instead of a
standard one.
paramCount
is 0 and deferred
is
false).public static java.lang.Object staticField(java.lang.String className, java.lang.String fieldName)
className
- The fully qualified name of the class containing the static
field.fieldName
- The name of the field.
public static FunctionParameters params(java.lang.Object... params)
FunctionParameters
object wrapping the given
parameters.
params
- the method parameters to be wrapped.
FunctionParameters
object wrapping the params.public static FunctionParameters params0()
public static FunctionParameters params1(java.lang.Object a)
public static FunctionParameters params2(java.lang.Object a, java.lang.Object b)
public static FunctionParameters params3(java.lang.Object a, java.lang.Object b, java.lang.Object c)
public static FunctionParameters params4(java.lang.Object a, java.lang.Object b, java.lang.Object c, java.lang.Object d)
public static <T> java.lang.Object invokeDynamic(T base, java.lang.String methodName, java.lang.Object params)
T
- The class containing the method to invoke.base
- The base object on which to apply the method.methodName
- The name of the method to invoke.params
- Either a single parameter to be passed to the method, or a
FunctionParameters
object containing all the
parameters to be passed to the method.
public static java.lang.Object invokeStatic(java.lang.String className, java.lang.String methodName, java.lang.Object params)
className
- The name of the class containing the method to be invoked.methodName
- The name of the method to invoke.params
- Either a single parameter to be passed to the method, or a
FunctionParameters
object containing all the
parameters to be passed to the method.
public static java.lang.Object invokeConstructor(java.lang.String className, java.lang.Object params)
className
- The name of the class to construct.params
- Either a single parameter to be passed to the constructor, or
a FunctionParameters
object containing all the
parameters to be passed to the constructor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |