All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Lib.Krakatau.constant_pool.pyc Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
?
?HRc@sDddlZddlZd?Zd?Zd?Zd?Zd?Zejddd	d
dg?Zedd
d?e?Z	eddd?d??Z
eddd?d??Zeddd?d??Zeddd?d??Z
edd d!?d"??Zed#d$d%?d&??Zed'd(d)?d*??Zed+d,d-?d.??Zed/d0d1?d2??Zed3d4d5?d6??Zed7d8d9?d:??Zed;d<d=?d>??Zed?d@dA?dB??Ze	e
eee
eeeeeeeeegZdC?eD?ZdD?eD?ZdEefdF??YZdS(Gi????NcCs%|\}|jdd?jd?fS(Ns??ttutf8(treplacetdecode(t.0ts((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyt	decodeStr
scCs%|\}|jd?jdd?fS(NRRs??(tencodeR(Rtu((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyt	encodeStrscCs*t|?d}tjdt|??|S(Nis>H(R	tstructtpacktlen(targsR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyt
strToBytesscCstjdtjd|??S(Ns>fs>i(R
tunpackR(ti((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytdecodeFloatscCstjdtjd|??S(Ns>ds>q(R
RR(R((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytdecodeDoublestcpoolInfo_ttnamettagtrecoverArgsttoBytestUtf8icCs|\}|fS(N((tselft.1R((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytstClassicCs|\}|j|?S(N(tgetArgs(RRtn_id((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyRscCs|\}tjd|?S(Ns>H(R
R(RR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR stNameAndTypeicCs&|\}}|j|?|j|?S(N(R(RRtntd((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR#scCs|\}}tjd||?S(Ns>HH(R
R(RR R!((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR$stFieldi	cCs&|\}}|j|?|j|?S(N(R(RRtc_idtnat_id((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR'scCs|\}}tjd||?S(Ns>HH(R
R(RR R!((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR(stMethodi
cCs&|\}}|j|?|j|?S(N(R(RRR#R$((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR+scCs|\}}tjd||?S(Ns>HH(R
R(RR R!((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR,stInterfaceMethodicCs&|\}}|j|?|j|?S(N(R(RRR#R$((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR/scCs|\}}tjd||?S(Ns>HH(R
R(RR R!((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR0stStringicCs|\}|j|?S(N(R(RRR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR3scCs|\}tjd|?S(Ns>H(R
R(RR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR4stInticCs|\}|fS(N((RRR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR7scCs|\}tjd|?S(Ns>i(R
R(Rtval((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR8stLongicCs|\}|fS(N((RRR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR;scCs|\}tjd|?S(Ns>q(R
R(RR)((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR<stFloaticCs|\}t|?S(N(R(RRR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR?scCs|\}tjd|?S(Ns>i(R
R(RR)((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR@stDoubleicCs|\}t|?S(N(R(RRR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyRCscCs|\}tjd|?S(Ns>q(R
R(RR)((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyRDstMethodHandleicCs |\}}|f|j|?S(N(R(RRttR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyRGscCs|\}}tjd||?S(Ns>BH(R
R(RR.R((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyRHst
MethodTypeicCs|\}|j|?S(N(R(RRR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyRKscCs|\}tjd|?S(Ns>H(R
R(RR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyRLst
InvokeDynamicicCs |\}}|f|j|?S(N(R(RRtbs_idR$((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyROscCs|\}}tjd||?S(Ns>HH(R
R(RR R!((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyRPscCsi|]}||j?qS((R(RR.((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pys
Us	cCsi|]}||j?qS((R(RR.((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pys
Vs	t	ConstPoolcBs?eZdd?Zd?Zd?Zd?Zd?Zd?Zd?Z	dd?Z
d?Zd	?Zd
?Z
d?Zd?Zd
?ZRS(cCs?g|_t?|_t?|_xn|D]f\}}|dkrM|j?q(t|}|jdkrut|?}n|jj	|j|f?q(WdS(NR(
tpooltsettreservedt	availabletNonetaddEmptySlotttag2TypeRRtappend(RtinitialDataRR)R.((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyt__init__Ys	

cCs
t|j?S(N(RR3(R((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytsizegscCsd?|jD?S(Ncss%|]}|ddk	r|VqdS(iN(R7(Rtx((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pys	js(R3(R((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytgetPoolIteriscCsd?t|j?D?S(Ncss1|]'\}}|ddk	r||fVqdS(iN(R7(RRR>((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pys	ls(t	enumerateR3(R((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytgetEnumeratePoolIterkscCs|jjd?dS(N(NN(R3R:R7(R((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR8nscCsZ|jr|jj?Sx&t|j?|jkr>|j?qW|j?t|j?dS(Ni(R6tpopRR3R5R8(R((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytgetAvailableIndexqs	

cCs?xL|jD]A}|d|jkr
|jj|?|jj|d?|Sq
WxBt|j?|jks?t|j?d|jkr?|j?qRW|j?|j?t|j?dS(Nii(R6tremoveRR3R5R8(RR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytgetAvailableIndex2ys7

cCs\|dkr+||jkr+|jj|?S|ddkr[t|ddt?s[t?n|ddk}|dkr?|r?|j?n	|j?}n?t|j?}||kr?|jdg|d|7_|j	j
t||??|j	|j8_	n|jj
|?|r6|jj
|d?|j?n||jksKt?||j|<|S(NiRiR*R,(sLongsDouble(NN(R7R3tindext
isinstancet
basestringtAssertionErrorRERCRR6tupdatetrangeR5RDR8(RtitemRFtcat2ttemp((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytaddItem?s& !

cCs|j|j|d|?S(NRF(ROR3(RtsrcRF((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytcopyItem?scCs?|dko|t|j?ks9tdj|???n|j|ddkrhtdj|???n|j|\}}t|}|j||?S(Nis#Constant pool index {} out of rangesConstant pool index {} invalid(RR3t
IndexErrortformatR7t	name2TypeR(RRRR)R.((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR?s!
cCs_|j|d|kr2tdj||???n|j|?}t|?dkrW|S|dS(Nis,Constant pool index {} has incorrect type {}i(R3tKeyErrorRSRR(RttypenRFR)((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytgetArgsCheck?scCs|j|dS(Ni(R3(RRF((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytgetType?scCs>td?|jD??}x|jD]}||j|?s(tnextR3R6(RtdummyR((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytfillPlaceholders?scCs?g}|j}|jst?|j?t|?dksAt?|jtjdt|???xV|j?D]H\}}t	|}|jtjd|j
??|j|j|??qmWdj|?S(Ni??s>Hs>Bt(
R3R5RIR[RR:R
RR?RTRRtjoin(RtpartsR3RtvalsR.((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytbytes?s	

N(NN((NN(t__name__t
__module__R7R<R=R?RAR8RCRERORQRRWRXR[R`(((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pyR2Xs								
			(R
tcollectionsRR	RRRt
namedtupleRRRRR"R%R&R'R(R*R+R,R-R/R0t
cpoolTypesRTR9tobjectR2(((s=/home/alex/projects/github/krakatau/Krakatau/constant_pool.pytsn																						




© 2015 - 2025 Weber Informatics LLC | Privacy Policy