app/src/main/assets/python/app_packages/rubicon/java/api.py
def type_names_for_params(params):
    """Return the Java type descriptors list matching an array of Java parameters.
    This is used when registering interfaces. The params list is converted into a
    tuple, where each element is the JNI type of the parameter.
    """
    param_count = java.GetArrayLength(params)

    sig = []
    for p in range(0, param_count):
        java_type = java.GetObjectArrayElement(params, p)
        if java_type.value is None:
            raise RuntimeError('Unable to retrieve parameter type from array.')

        type_name = java.CallObjectMethod(java_type, reflect.Class__getName)
        if type_name.value is None:
            raise RuntimeError("Unable to get name of type for parameter.")

        param_type = java.GetStringUTFChars(cast(type_name, jstring), None)

        sig.append(signature_for_type_name(param_type))

        java.DeleteLocalRef(java_type)
        java.DeleteLocalRef(type_name)
    return tuple(sig)
Return the Java type descriptors list matching an array of Java parameters.
    This is used when registering interfaces. The params list is converted into a
    tuple, where each element is the JNI type of the parameter.
    
Return the Java type descriptors list matching an array of Java parameters.
This is used when registering interfaces. The params list is converted into a
tuple, where each element is the JNI type of the parameter.
Return the Java type descriptors list matching an array of Java parameters . This is used when registering interfaces . The params list is converted into a tuple where each element is the JNI type of the parameter .
def type_names_for_params(params):
    param_count = java.GetArrayLength(params)
    sig = []
    for p in range(0, param_count):
        java_type = java.GetObjectArrayElement(params, p)
        if java_type.value is None:
            raise RuntimeError('Unable to retrieve parameter type from array.')
        type_name = java.CallObjectMethod(java_type, reflect.Class__getName)
        if type_name.value is None:
            raise RuntimeError("Unable to get name of type for parameter.")
        param_type = java.GetStringUTFChars(cast(type_name, jstring), None)
        sig.append(signature_for_type_name(param_type))
        java.DeleteLocalRef(java_type)
        java.DeleteLocalRef(type_name)
    return tuple(sig)
def type_names_for_params ( params ) : param_count = java . GetArrayLength ( params ) sig = [ ] for p in range ( 0 , param_count ) : java_type = java . GetObjectArrayElement ( params , p ) if java_type . value is None : raise RuntimeError ( 'Unable to retrieve parameter type from array.' ) type_name = java . CallObjectMethod ( java_type , reflect . Class__getName ) if type_name . value is None : raise RuntimeError ( "Unable to get name of type for parameter." ) param_type = java . GetStringUTFChars ( cast ( type_name , jstring ) , None ) sig . append ( signature_for_type_name ( param_type ) ) java . DeleteLocalRef ( java_type ) java . DeleteLocalRef ( type_name ) return tuple ( sig )
Return the Java type descriptors list matching an array of Java parameters.
Return the Java type descriptors list matching an array of Java parameters .
"""Return the Java type descriptors list matching an array of Java parameters.
    This is used when registering interfaces. The params list is converted into a
    tuple, where each element is the JNI type of the parameter.
    """
params