|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Function<T>
Function abstracts the concept of any invokable entity. that has typed parameters and return values. java.lang.reflect.Method and java.lang.reflect.Constructor are the two entities made implementation of this interface.
Codehaus.org.
| Method Summary | |
|---|---|
T |
call(java.lang.Object[] args)
Invoke this function. |
java.lang.String |
getName()
Get the name of the signature. |
java.lang.Class[] |
getParameterTypes()
Gets the parameter types of the function. |
java.lang.Class<T> |
getReturnType()
Gets the return type of the function. |
boolean |
isConcrete()
To determine if the type returned by getReturnType() is the concrete type of the real return value. |
| Method Detail |
|---|
boolean isConcrete()
Static type check will be performed on concrete types.
java.lang.Class<T> getReturnType()
getReturnType in interface Signature<T>java.lang.Class[] getParameterTypes()
getParameterTypes in interface Signature<T>
T call(java.lang.Object[] args)
throws java.lang.Throwable
args - the arguments.
java.lang.Throwablejava.lang.String getName()
getName in interface Signature<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||