コード例 #1
0
ファイル: VJJsxHelper.java プロジェクト: sleetish/vjet
 public <T, R> JFunction<T, R> ref(T thisObj, Class<R> returnType, String funcName) {
   return JFunctionX.def(thisObj, funcName, returnType);
 }
コード例 #2
0
ファイル: VJJsxHelper.java プロジェクト: sleetish/vjet
 /** define function from static method of the caller */
 public JFunction<Class<?>, Void> ref(String funcName) {
   Class<?> callerClz = CallerIntrospector.getCallingClass();
   return JFunctionX.def(callerClz, funcName, void.class);
 }
コード例 #3
0
ファイル: VJJsxHelper.java プロジェクト: sleetish/vjet
 /**
  * Answer an unbound instance function from the passed in thisObj that returns the passed in type.
  * Throws an exception if the instance method of the specific return type is not found. Note that
  * methods that are overloaded can not be used since there is no JavaScript/Rhino way to directly
  * overload a method.
  */
 public <T> JFunction<T, Void> ref(T thisObj, String funcName) {
   return JFunctionX.def(thisObj, funcName, void.class);
 }
コード例 #4
0
ファイル: VJJsxHelper.java プロジェクト: sleetish/vjet
 public <R> JFunction<Class<?>, R> ref(Class<?> clz, Class<R> returnType, String funcName) {
   return JFunctionX.def(clz, funcName, returnType);
 }