info.javelot.functionalj.reflect.function
Class StdReflectFunction<R>

java.lang.Object
  extended by info.javelot.functionalj.FunctionNImpl<R>
      extended by info.javelot.functionalj.reflect.function.StdReflectFunction<R>
Type Parameters:
R - the type of the result returned by the function.
All Implemented Interfaces:
FunctionN<R>

public class StdReflectFunction<R>
extends FunctionNImpl<R>

Function to invoke a reflect element.

Author:
Copyright © 2006 Frederic Daoud

Constructor Summary
StdReflectFunction(ReflectElement p_element)
          Constructs a function to invoke the reflect element.
 
Method Summary
 R call(Object... p_params)
          Calls the function and returns the result.
 
Methods inherited from class info.javelot.functionalj.FunctionNImpl
bind, bind, call, f0, f1, f2, f3, f4
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdReflectFunction

public StdReflectFunction(ReflectElement p_element)
Constructs a function to invoke the reflect element.

Parameters:
p_element - the reflect element to be invoked by the function.
Method Detail

call

public R call(Object... p_params)
       throws FunctionException
Description copied from interface: FunctionN
Calls the function and returns the result.

Parameters:
p_params - the parameters to the function.
Returns:
the result of the function call.
Throws:
FunctionException - thrown if an exception occurs during the function call.