Lib.Krakatau.java.javaclass.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 Z d d l m Z d d l m Z d d l m Z m Z m Z d d l m
Z
d Z d ? Z d
? Z
d ? Z d d ? Z d S(
i????Ni ( t objtypes( t parseFieldDescriptori ( t astt ast2t
javamethod( t reserved_identifiersi c C sp | j | d } | j | ? } i t j d 6t j d 6t j d 6t j d 6t j d 6| } t j | | d ? S( Ni t Intt Longt Floatt Doublet String(
t poolt getArgsR t IntTTt LongTTt FloatTTt DoubleTTt StringTTR t Literal( t cpoolt indext
entry_typet argst tt( ( s> /home/alex/projects/github/krakatau/Krakatau/java/javaclass.pyt loadConstValue s c C s# g t | j ? D] } | d k r | j ? ^ q } | j } t j t | d t ?d ? } d } | j r? | j
j } g | j D] \ } } | d k r? | ^ q? } | r? t
| ? d k s? t ? | d } t j d | ? d }
t | |
? } q? n t j d j | ? t j | ? | j | ? S(
Nt SYNTHETICt ENUMt unsynthesizei t
ConstantValuei s >ht ( s SYNTHETICs ENUM( t sortedt flagst lowert
descriptorR t verifierToSyntheticR t Falset Nonet statict class_R t
attributest lent AssertionErrort structt unpackR R t FieldDeft joinR t TypeNamet name( t fieldt xR t desct dtypet initexprR R/ t datat const_attrsR ( ( s> /home/alex/projects/github/krakatau/Krakatau/java/javaclass.pyt _getField s 4 .
c C s? yc | j d k r | | ? n d } d G| j j d ? G| j j d ? GHt j | | | ? } | SWn t k
r? } t s? ? n | j j
d k r? d | j j GHn d j | j j ? GHt j | d | ? } d j | ? | _
| SXd S( Ns Decompiling methodt utf8t DecompilationErrors Unable to decompile s Decompiling {} failed!s
{0!r}: {0!s}( t codeR$ R/ t encodeR! R t generateASTt Exceptiont IGNORE_EXCEPTIONSt __class__t __name__R&