|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object beanface.el.functor.FunctorStub<T>
T
- The base class which the target method is a member of.public class FunctorStub<T>
Information identifying a static or dynamic method of a class, and optionally an instance of that class, that can be combined with parameters to form a functor.
Constructor Summary | |
---|---|
FunctorStub(javax.el.ELContext context,
FunctorIdentification functorIdent,
T base,
java.lang.Class<? extends T> baseClass,
java.lang.reflect.Member method,
boolean isDeferred,
int specifiedParamCount)
|
|
FunctorStub(javax.el.ELContext context,
FunctorIdentification functorIdent,
T base,
java.lang.Class<? extends T> baseClass,
java.lang.String methodID)
|
Method Summary | |
---|---|
java.lang.Object |
applyParams(javax.el.ELContext context,
java.lang.Object[] params)
Invoke the method or constructor referenced by this functor stub passing in the given parameters. |
java.lang.String |
functionIdent()
Constructs an identifier that would reference this functor. |
T |
getBase()
The base object which this functor's method will apply to (may be null if the method is static or a constructor). |
java.lang.Class<? extends T> |
getBaseClass()
The base class which this functor's method comes from (cannot be null). |
Functor<T> |
getFunctorParamZero(javax.el.ELContext context)
|
java.lang.reflect.Member |
getMember()
The Method or Constructor that this functor targets. |
int |
getParamCountRequired()
Determine the mininum number of parameters that must be provided to this function before a result can be obtained. |
int |
getSpecifiedParamCount()
The number of parameters explicitly specified in the method identifier. |
boolean |
hasVarArgs()
Determine if the function was declared with a var-arg final parameter. |
boolean |
isDeferred()
If the functor is deferred, the method will not be automatically invoked once the needed parameters have been provided. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctorStub(javax.el.ELContext context, FunctorIdentification functorIdent, T base, java.lang.Class<? extends T> baseClass, java.lang.String methodID)
public FunctorStub(javax.el.ELContext context, FunctorIdentification functorIdent, T base, java.lang.Class<? extends T> baseClass, java.lang.reflect.Member method, boolean isDeferred, int specifiedParamCount)
Method Detail |
---|
public Functor<T> getFunctorParamZero(javax.el.ELContext context)
public T getBase()
public java.lang.Class<? extends T> getBaseClass()
public java.lang.reflect.Member getMember()
public int getParamCountRequired()
public boolean hasVarArgs()
public java.lang.Object applyParams(javax.el.ELContext context, java.lang.Object[] params) throws javax.el.ELException
context
- The EL context used to construct error messages when needed.params
- The parameters to pass to the method invocation.
javax.el.ELException
public boolean isDeferred()
public int getSpecifiedParamCount()
public java.lang.String functionIdent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |