org.onemind.jxp.util
Class StaticImport.StaticFunction

java.lang.Object
  extended by org.onemind.commons.invoke.AbstractInvocableFunction
      extended by org.onemind.jxp.util.StaticImport.StaticFunction
All Implemented Interfaces:
org.onemind.commons.invoke.InvocableFunction
Enclosing class:
StaticImport

private class StaticImport.StaticFunction
extends org.onemind.commons.invoke.AbstractInvocableFunction

InvocableFunction which wrap a method

Author:
TiongHiang Lee (thlee@onemindsoft.org)

Field Summary
private  java.lang.reflect.Method _method
          the method
 
Constructor Summary
StaticImport.StaticFunction(java.lang.reflect.Method method)
          Constructor
 
Method Summary
 java.lang.Object invoke(java.lang.Object target, java.lang.Object[] args)
          
 
Methods inherited from class org.onemind.commons.invoke.AbstractInvocableFunction
canInvokeOn, getArgTypes, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_method

private java.lang.reflect.Method _method
the method

Constructor Detail

StaticImport.StaticFunction

public StaticImport.StaticFunction(java.lang.reflect.Method method)
Constructor

Parameters:
method - the method
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object target,
                               java.lang.Object[] args)
                        throws java.lang.Exception

Throws:
java.lang.Exception