Lib.Krakatau.environment.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 @ sr d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d e
f d ? ? YZ d S( i????N( t binUnpacker( t stdcache( t ClassFile( t ClassLoaderErrort Environmentc B st e Z d ? Z d ? Z e ? e d ? Z d ? Z d ? Z d ? Z d ? Z
d ? Z d ? Z d ? Z
d
? Z RS( c C s4 i | _ g | _ t j | d ? | _ i | _ d S( Ns cache.txt( t classest pathR t Cachet cachet _open( t self( ( s; /home/alex/projects/github/krakatau/Krakatau/environment.pyt __init__
s c C s | j j | ? d S( N( R t append( R
R ( ( s; /home/alex/projects/github/krakatau/Krakatau/environment.pyt addToPath s c C sr | | k r$ t d | | f ? ? n y | j | } Wn# t k
rZ | j | | ? } n X| sn | j ? n | S( Nt ClassCircularityError( R R t KeyErrort
_loadClasst loadElements( R
t namet
subclassest partialt result( ( s; /home/alex/projects/github/krakatau/Krakatau/environment.pyt getClass s
c C s" | | k p! | | j j | ? k S( N( R t superClasses( R
t name1t name2( ( s; /home/alex/projects/github/krakatau/Krakatau/environment.pyt
isSubclass s c C s | j j | ? S( N( R t flags( R
R ( ( s; /home/alex/projects/github/krakatau/Krakatau/environment.pyt getFlags! s c C s | j j | ? S( N( R R ( R
R ( ( s; /home/alex/projects/github/krakatau/Krakatau/environment.pyt getSupers" s c C s | j j | ? S( N( R t isCached( R
R ( ( s; /home/alex/projects/github/krakatau/Krakatau/environment.pyR # s c C s? | d 7} x? | j D]? } y | j | } Wni t k
r? y; t j j | | ? } t | d ? ? } | j ? SWd QXWq? t k
r? d G| GHq? Xq Xy | j | ? SWq t k
r? q Xq Wd S( Ns .classt rbs failed to open( R R R t ost joint opent readt IOError( R
R t placet archiveR t file_( ( s; /home/alex/projects/github/krakatau/Krakatau/environment.pyt _searchForFile% s
c C s d G| d GH| j | ? } | d k r: t d | ? ? n t j d | ? } t | ? } | j | | | ? | | j | j <| S( Nt LoadingiF t ClassNotFoundExceptiont data( R( t NoneR R R t
loadSupersR R ( R
R R R+ t streamt new( ( s; /home/alex/projects/github/krakatau/Krakatau/environment.pyR 7 s
c C sh | j s t ? xQ | j D]F } | j d ? s> | j d ? r t j | d ? j ? | j |