
    q&i                          S SK r SSKJr  SSKJr  / SQrS r " S S\5      r " S	 S
\ R                  \S9r
 " S S\ R                  SS9rS rS rS r\
\ l
        \\ l        \\ l        \\ l        \\ l        g)    N   )pysafe)_jcustomizer)JClass
JInterface	JOverridec                     ^ [        U 5      S:X  a2  [        U S   5      (       a  [        R                  U S   S0 5        U S   $ U4S jnU$ )ap  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.

r   r   __joverride__c                 6   > [         R                  U ST5        U $ )Nr
   )object__setattr__)methodkwargss    M/var/www/html/banglarbhumi/venv/lib/python3.13/site-packages/jpype/_jclass.pymodifierJOverride.<locals>.modifier+   s    6?F;    )lencallabler   r   )argsr   r   s    ` r   r   r      sI     4yA~(47++47OR8Aw Or   c                       \ rS rSrS rSrg)
JClassMeta1   c                 :    [        U5      [        R                  :H  $ N)type_jpype_JClass)selfothers     r   __instancecheck__JClassMeta.__instancecheck__2   s    E{fnn,,r    N)__name__
__module____qualname____firstlineno__r!   __static_attributes__r#   r   r   r   r   1   s    -r   r   c                   (    \ rS rSrSrSS jrS rSrg)r   6   a  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.
Nc                    U(       a5  [        U[        5      (       a   [        R                  R	                  XU5      n[        U[        5      (       Ga  UR                  S5      (       a  UR                  S5      nXS-   S n[        R                  " US U 5      n[        UR                  R                  5       5      nUS:X  a  [        SUR                  -  5      e[        U5      S:  a  UR                  S5      n[        U5      S:  aH  [        U5      [        UR                  R                  5       5      :w  a  [        SUR                  -  5      eU$ [        R                  " U5      $ )	N><r   r   z(Java class '%s' does not take parameters,z'Java generic class '%s' length mismatch)
isinstancestrr   _java_lang_ClassforNameendswithfind	_getClassr   class_getTypeParameters	TypeErrorr$   split)clsjcloader
initializeiparamsretacceptParamss           r   __new__JClass.__new__N   s$   jS))((00HB b#2;;s#3#3AAb\F""2bq6*Cszz;;=>Lq >#,,OQ Q6{Qc*6{Q3v;#cjj6R6R6T2U#U=NP PJ ##r   c                     [        S5      U   $ )Nzjava.lang.Class)r   )r;   indexs     r   __class_getitem__JClass.__class_getitem__e   s    '(//r   r#   )NT)r$   r%   r&   r'   __doc__rC   rG   r(   r#   r   r   r   r   6   s    .$.0r   r   )	metaclassc                       \ rS rSrSrSrg)r   j   aT  A 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")

r#   N)r$   r%   r&   r'   rI   r(   r#   r   r   r   r   j   s     	r   r   T)internalc                     [        UR                  5       5      nU H&  u  pE[        U5      nXd:w  d  M  X$	 U(       d  M"  XRU'   M(     [        R                  " U 5      nUR                  XU5        U [        U5      U4$ r   )listitemsr   r   getClassHintsapplyCustomizerstuple)namebasesmembersmkvk2hintss           r   
_jclassPrer\   |   sp    W]]_AAY7
r  &&t,E	40%,((r   c                    [         R                  " U R                  5      nX l        UR	                  U 5        [
        R                  (       az  U R                  R                  5        H[  nUR                  5       S-  S:X  a  M  [
        R                  " U5      nU R                  [        UR                  5       5      U5        M]     g g )Nr   r   )r   rQ   r$   _hintsapplyInitializerr   r2   r7   getDeclaredClassesgetModifiersr   
_customizer1   getSimpleName)resr   r[   r;   wrappers        r   _jclassPostrf      s    &&s||4EJ	3
 ::002C!A%*mmC(GNN3s0023W=	 3 r   c                 	   / n[        U S5      (       d  [        S5      " 5       nUR                  U 5      nUb  [        U SU5        UR                  b$  UR                  [        UR                  5      5        UR                  b$  UR                  [        UR                  5      5        SR                  U5      $ [        U SS5        SSK	J
n  U R                  nUR                  SUR                  5       -  5        UR                  S5        UR                  5       nU(       aD  UR                  S5        UR                  S	UR                  5       -  5        UR                  S5        UR                  5       nU(       a  UR                  S
5        SR                  U Vs/ s H  n[        UR                  5       5      PM     sn5      n	U" SSS9n
UR!                  U
R#                  U	5      5        UR                  S5        UR%                  5       nU(       GaP  / nUR'                  5       n/ nU H  nUR)                  5       nUS-  (       d  M  SR                  UR+                  5        Vs/ s H  n[        UR                  5       5      PM     sn5      nUR                  SU< SU< S35        UR!                  UR-                  5       5        M     U(       a3  UR                  S5        UR!                  U5        UR                  S5        U(       aV  UR                  S5        [/        U5       H%  nUR                  SUR                  5       -  5        M'     UR                  S5        UR1                  5       nU(       Ga'  / nU H  nUR)                  5       nUS-  (       d  M  / nUS-  (       a  UR                  S5        US-  (       a  UR                  S5        UR3                  5       (       a  UR                  S5        OUR                  S5        UR                  SUR                  5       < SUR5                  5       R                  5       < SSR                  U5      < 35        M     U(       a3  UR                  S5        UR!                  U5        UR                  S5        S R                  U5      $ s  snf s  snf )!zGenerator for JClass.__doc__ property

Parameters:
   cls (JClass): class to document.

Returns:
  The doc string for the class.
__javadoc__z"org.jpype.javadoc.JavadocExtractorN r   )TextWrapperzJava class '%s'z    Extends:z
        %sz    Interfaces:z, z        )initial_indentsubsequent_indentr   z    * ()z  Constructors:z	  Raises:z    %s: from java   final   staticzenum constantfieldz    z (z):  z  Attributes:
)hasattrr   getDocumentationsetattrdescriptionappendr1   ctorsjointextwraprj   r7   getNamegetSuperclassgetInterfacesgetCanonicalNameextendwrapgetDeclaredConstructorsrc   ra   getParameterTypesgetExceptionTypessetgetDeclaredFieldsisEnumConstantgetType)r;   outjdejdrj   jclasssupintfsr?   wordsre   r{   
exceptionsrT   ctordeclctor	modifiersr@   excfields	fielddescrs   	fieldInfos                          r   
_jclassDocr      s    C3&&9:<!!#&>C+~~)

3r~~./xx#

3rxx=)773<C%$ZZFJJ FNN$456JJrN



 C


>"

<#++-/0

2  "E

$%		eDe3q1134eDEW079

7<<&'

2**,E
##%D))+Iq=YY)-)?)?)A C)AA !$A$6$6$8 9)A C DFOOdF;<d4467  JJ()JJx JJrNJJ{#:

.1E1E1GGH 'JJrN%%'F	E**,Iq=I2~  )1}  *##%%  1  )%--/27--/2I2I2K25((92EG H   JJ'JJy!JJrN99S>k E Cs   #R6(#R;
)r   _pykeywordsr   ri   r   __all__r   r   r   r   r   _JObjectr   r\   rf   r   r#   r   r   <module>r      s   $   
/0- -
10V^^z 10h	4 	$)">"Xx      r   