HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/lib/fm-agent/dependencies/linux/python3.9/jpype/__pycache__/_jmethod.cpython-39.pyc
a

��i��@sNddlZgZddlZddlmZdd�Zdd�Zdd	�Zee_ee_ee_	dS)
�N�)�_jclasscCs�t�|�}t|d�s|jt|d�}|durJ|j�|j�}|durJt|�Sddl	m
}g}|�d|j|��f�|�d�g}g}	g}
g}|D]�}|�
�}
|�|���|����}d�dd	�|��D��}|d
kr�|	�|�|
d@�r|�d||��|f�q�|
�d||��|f�q�|�rB|�d
�|�|�|�d�|
�rf|�d�|�|
�|�d�|�r�|�d�t|�D]}|�d|����q~|�d�|	�r�|�d�d�dd	�t|	�D��}|ddd�}|�|�|��|�d�d�|�S)asGenerator for _JMethod.__doc__ property

    Parameters:
      method (_JMethod): method to generate doc string for.
      cls (java.lang.Class): Class holding this method dispatch.
      overloads (java.lang.reflect.Method[]): tuple holding all the methods
        that are served by this method dispatch.

    Returns:
      The doc string for the method dispatch.
    �__javadoc__Nr)�TextWrapperz"Java method dispatch '%s' for '%s'�z, cSsg|]}t|����qS�)�str�getCanonicalName��.0�irr�@/usr/lib/fm-agent/dependencies/linux/python3.9/jpype/_jmethod.py�
<listcomp>9s�z"_jmethodGetDoc.<locals>.<listcomp>Zvoid�z    * %s %s(%s)z  Static Methods:z  Virtual Methods:z	  Raises:z    %s: from javaz
  Returns:cSsg|]}t|��qSr)rr
rrr
rU�z    )�initial_indent�subsequent_indent�
)�_jpype�JClass�hasattr�__doc__�getattr�methods�get�__name__r�textwrapr�append�getName�getModifiers�extend�getExceptionTypes�
getReturnTyper	�join�getParameterTypes�set�wrap)�method�cls�	overloadsZjcls�jd�mdr�out�
exceptions�returnsrZclassmethods�ov�	modifiersZ
returnName�params�exc�words�wrapperrrr
�_jmethodGetDocsp


�

�

��








�
r5cCs�g}t|�dkrZ|d}i}t|���D]\}}t�|�|d|<q(t�|���|d<|S|D]}|�|���q^t|�}t|�dkr�dt�dd�|D�d�iSiS)a}Generator for ``_JMethod.__annotation__`` property

    Parameters:
      method (_JMethod): method to generate annotations for.
      cls (java.lang.Class): Class holding this method dispatch.
      overloads (java.lang.reflect.Method[]): tuple holding all the methods
        that are served by this method dispatch.

    Returns:
      The dict to use for type annotations.
    rrzarg%d�returncSsg|]}|�qSrrr
rrr
r{rz)_jmethodGetAnnotation.<locals>.<listcomp>)�len�	enumerater$rrr"rr%)r'r(r)r.r/r,r�prrr
�_jmethodGetAnnotation^sr:cs�fdd�}|S)Ncs
�j|�S)N)�__call__)�args�r'rr
�call�sz_jmethodGetCode.<locals>.callr)r'r>rr=r
�_jmethodGetCodesr?)
r�__all__rrr5r:r?ZgetMethodDocZgetMethodAnnotationsZ
getMethodCoderrrr
�<module>sF!