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: //proc/self/root/lib/fm-agent/dependencies/linux/python3.9/jpype/__pycache__/_jclass.cpython-39.pyc
a

��i��@s�ddlZddlmZddlmZgd�Zdd�ZGdd	�d	e�ZGd
d�dej	ed�Z
Gd
d�dejdd�Zdd�Z
dd�Zdd�Ze
e_
ee_ee_e
e_
ee_dS)�N�)�pysafe)�_jcustomizer)�JClass�
JInterface�	JOverridecsBt|�dkr2t|d�r2t�|ddi�|dS�fdd�}|S)a�Annotation to denote a method as overriding a Java method.

    This annotation applies to customizers, proxies, and extensions
    to Java classes. Apply it to methods to mark them as implementing
    or overriding Java methods.  Keyword arguments are passed to the
    corresponding implementation factory.

    Args:
      sticky=bool: Applies a customizer method to all derived classes.

    rr�
__joverride__cst�|d��|S)Nr)�object�__setattr__)�method��kwargs��?/usr/lib/fm-agent/dependencies/linux/python3.9/jpype/_jclass.py�modifier+szJOverride.<locals>.modifier)�len�callabler	r
)�argsr
rrrrrs

rc@seZdZdd�ZdS)�
JClassMetacCst|�tjkS�N)�type�_jpype�_JClass)�self�otherrrr�__instancecheck__2szJClassMeta.__instancecheck__N)�__name__�
__module__�__qualname__rrrrrr1src@seZdZdZddd�ZdS)ra�Meta class for all Java class instances.

    When called as an object, JClass will contruct a new Java class wrapper.

    All Python wrappers for Java classes derive from this type.
    To test if a Python class is a Java wrapper use
    ``isinstance(obj, jpype.JClass)``.

    Args:
      className (str): name of a Java type.

    Keyword Args:
      loader (java.lang.ClassLoader): specifies a class loader to use
        when creating a class.
      initialize (bool): If true the class will be loaded and initialized.
        Otherwise, static members will be uninitialized.

    Returns:
      JavaClass: a new wrapper for a Java class

    Raises:
      TypeError: if the component class is invalid or could not be found.
    NTcCs�|rt|t�rtj�|||�}t|t�r�|�d�r�|�d�}||dd�}t�|d|��}t|j	�
��}|dkr�td|j��t|�dkr�|�
d�}t|�dkr�t|�t|j	�
��kr�td|j��|St�|�S)	N�>�<r���rz(Java class '%s' does not take parameters�,z'Java generic class '%s' length mismatch)�
isinstance�strr�_java_lang_ClassZforName�endswith�find�	_getClassr�class_ZgetTypeParameters�	TypeErrorr�split)�clsZjc�loaderZ
initialize�i�params�retZacceptParamsrrr�__new__Ns&
�
"�zJClass.__new__)NT)rrr�__doc__r1rrrrr6sr)�	metaclassc@seZdZdZdS)ratA meta class for all Java Interfaces.

    ``JInterface`` is serves as the base class for any Java class that is
    a pure interface without implementation. It is not possible to create
    a instance of a Java interface.

    Example:

    .. code-block:: python

       if isinstance(java.util.function.Function, jpype.JInterface):
          print("is interface")

    N)rrrr2rrrrrfsrT)�internalcCs^t|���}|D]&\}}t|�}||kr||=|||<qt�|�}|�|||�|t|�|fSr)�list�itemsrr�
getClassHintsZapplyCustomizers�tuple)�name�bases�members�m�k�v�k2�hintsrrr�
_jclassPrexs

rAcGsft�|j�}||_|�|�tjrb|j��D]4}|�	�d@dkrBq,t�
|�}|�t|�
��|�q,dS)Nrr)rr7r�_hintsZapplyInitializerrr%r)ZgetDeclaredClasses�getModifiersr�
_customizer$�
getSimpleName)�resrr@r,�wrapperrrr�_jclassPost�s

rHc	Cs�g}t|d�sttd��}|�|�}|durtt|d|�|jdurP|�t|j��|jdurj|�t|j��d�|�St|dd�ddl	m
}|j}|�d|���|�d�|�
�}|r�|�d�|�d	|���|�d�|��}|�r2|�d
�d�dd
�|D��}|ddd�}	|�|	�|��|�d�|��}
|
�r
g}|��}g}
|
D]T}|��}|d@�sn�qTd�dd
�|��D��}|
�d||f�|�|����qT|
�r�|�d�|�|
�|�d�|�r
|�d�t|�D]}|�d|����q�|�d�|��}|�r�g}|D]�}|��}|d@�s:�q g}|d@�rR|�d�|d@�rf|�d�|���r||�d�n
|�d�|�d|��|����d�|�f��q |�r�|�d�|�|�|�d�d�|�S) z�Generator for JClass.__doc__ property

    Parameters:
       cls (JClass): class to document.

    Returns:
      The doc string for the class.
    Z__javadoc__z"org.jpype.javadoc.JavadocExtractorN�r)�TextWrapperzJava class '%s'z    Extends:z
        %sz    Interfaces:z, cSsg|]}t|����qSr�r$�getCanonicalName��.0r.rrr�
<listcomp>��z_jclassDoc.<locals>.<listcomp>z        )�initial_indent�subsequent_indentrcSsg|]}t|����qSrrKrMrrrrO�s�z    * %s(%s)z  Constructors:z	  Raises:z    %s: from java��final�Zstaticz
enum constant�fieldz    %s (%s): %s� z
  Attributes:�
)�hasattrrZgetDocumentation�setattr�description�appendr$�ctors�join�textwraprJr)�getNameZ
getSuperclassZ
getInterfaces�extend�wrapZgetDeclaredConstructorsrErCZgetParameterTypesZgetExceptionTypes�setrLZgetDeclaredFieldsZisEnumConstantZgetType)r,�outZjdeZjdrJZjclass�supZintfs�wordsrGr]�
exceptionsr9ZctordeclZctor�	modifiersr/�exc�fieldsZ	fielddescrVZ	fieldInforrr�
_jclassDoc�s�	









�


�












�


rk)r�_pykeywordsrrIr�__all__rrrrr�_JObjectrrArHrkrrrr�<module>s0\