Lib.Krakatau.classfile.pyc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of krakatau-lib Show documentation
Show all versions of krakatau-lib Show documentation
Assembler, disassebmler, decompiler and compiler tools library for Java.
?
?HRc @ s? d d l m Z m Z m Z d d l m Z m Z i
d d 6d d 6d d 6d d 6d d
6d d 6d d
6d d 6d d 6d d 6d d 6d d 6d d 6Z d ? Z d ? Z d ? Z
e Z e
Z d e
f d ? ? YZ d S( i ( t
constant_poolt methodt field( t get_attributes_rawt fixAttributeNamess >ii i s >qi i s >Hi i s >HHi i
i i s >BHi i i c C s | j d ? } | d k s! t ? d } | g } x? t | ? | k r? | j d ? } | d k r? | j d ? } | j | ? } | | f f } n | | j t | t ? f } | j | ? | d k s? | d k r3 | j | ? q3 q3 Wt | ? | k s? t ? | S( Ns >Hi t Bi i ( NN( t gett AssertionErrort Nonet lent getRawt
cp_structFmtst Truet append( t
bytestreamt const_countt placeholdert poolt tagt lengtht datat val( ( s9 /home/alex/projects/github/krakatau/Krakatau/classfile.pyt
get_cp_raw s
c C s4 | j d ? \ } } } t | ? } | | | | f S( Ns >HHH( R R ( R t flagst namet desct
attributes( ( s9 /home/alex/projects/github/krakatau/Krakatau/classfile.pyt
get_field_raw( s c C s2 | j d ? } g t | ? D] } t | ? ^ q S( Ns >H( R t rangeR ( R t countt _( ( s9 /home/alex/projects/github/krakatau/Krakatau/classfile.pyt get_fields_raw- s t ClassFilec B s? e Z i d d 6d d 6d d 6d d 6d d 6d
d 6d d
6d d 6d d 6d d 6d d 6Z d ? Z d ? Z e d ? Z d ? Z RS( i t PUBLICi t FINALi t SUPERi t INTERFACEi t ABSTRACTi t SYNTHETICi t
ANNOTATIONi @ t ENUMi t PRIVATEi t PROTECTEDi t STATICc s~ | j d ? \ } } } | d k s* t ? | | f | _ t | ? } | j d ? \ ? | _ | _ | j d ? } g t | ? D] } | j d ? ^ q | _ t | ? | _ t
| ? | _ g t | ? D]$ \ } } | d d
f k r? | ^ q? }
t
| |
? | _ | j ? d k st ? t ? f d ? t j j ? D? ? | _ t j | ? | _ | j j d | j ? | _ t | _ d S( Ns >LHHI???? s >HHHs >Hi t InnerClassesi c 3 s% | ] \ } } | ? @r | Vq d S( N( ( t .0R t mask( R ( s9 /home/alex/projects/github/krakatau/Krakatau/classfile.pys W s t Class( R, ( R R t versionR t thist superR t interfaces_rawR t
fields_rawt get_methods_rawt methods_rawt enumerateR t attributes_rawt sizet setR t flagValst itemsR R t ConstPoolt cpoolt getArgsCheckR t Falset elementsLoaded( t selfR t magict minort majort const_pool_rawt interface_countR t it xt
ic_indices( ( R s9 /home/alex/projects/github/krakatau/Krakatau/classfile.pyt __init__E s +7(c C s? | | _ | j | k s t ? | j r? | j j d | j ? | _ | j j | j ? s} | j j | j | | f d t ?n | j j
| j ? | j f | _ n* | d k s? t ? d | _ | j f | _ d S( NR/ t partials java/lang/Object(
t envR R R2 R> R? t supernamet isCachedt getClassR t getSuperst hierarchyR ( RB RM R t
subclasses( ( s9 /home/alex/projects/github/krakatau/Krakatau/classfile.pyt
loadSupers\ s &% c C s? | j r
d Sg | j D] } t j | | | ? ^ q | _ g | j D] } t j | | | ? ^ qE | _ t | j
| j ? | _ | ` | ` | s? | `
n t
| _ d S( N( RA R4 R t Fieldt fieldsR6 R t Methodt methodsR R8 R> R R ( RB t keepRawt m( ( s9 /home/alex/projects/github/krakatau/Krakatau/classfile.pyt loadElementsl s .. c C s | j S( N( RR ( RB ( ( s9 /home/alex/projects/github/krakatau/Krakatau/classfile.pyt getSuperclassHierarchyx s ( t __name__t
__module__R; RK RT R@ R[ R\ ( ( ( s9 /home/alex/projects/github/krakatau/Krakatau/classfile.pyR 5 s
N( t R R R R8 R R R R R R t get_method_rawR5 t objectR ( ( ( s9 /home/alex/projects/github/krakatau/Krakatau/classfile.pyt s(
© 2015 - 2025 Weber Informatics LLC | Privacy Policy