Exemplo n.º 1
0
 public static void populateMethod(
     JavaMethod javaMethod,
     int arity,
     String simpleName,
     boolean isStatic,
     boolean notImplemented) {
   javaMethod.setIsBuiltin(true);
   javaMethod.setArity(Arity.createArity(arity));
   javaMethod.setJavaName(simpleName);
   javaMethod.setSingleton(isStatic);
   javaMethod.setNotImplemented(notImplemented);
 }
Exemplo n.º 2
0
 public static void populateMethod(
     JavaMethod javaMethod,
     int arity,
     String simpleName,
     boolean isStatic,
     boolean notImplemented,
     Class nativeTarget,
     String nativeName,
     Class nativeReturn,
     Class[] nativeArguments) {
   javaMethod.setIsBuiltin(true);
   javaMethod.setArity(Arity.createArity(arity));
   javaMethod.setJavaName(simpleName);
   javaMethod.setSingleton(isStatic);
   javaMethod.setNotImplemented(notImplemented);
   javaMethod.setNativeCall(
       nativeTarget, nativeName, nativeReturn, nativeArguments, isStatic, false);
 }