<s> class Signature ( object ) : <EOL> def __init__ ( self , cls , method = None , descriptor = None ) : <EOL> self . cls = cls <EOL> self . class_components = self . cls . name . strip ( '<STR_LIT:L>' ) . strip ( '<STR_LIT:;>' ) . split ( '<STR_LIT:/>' ) <EOL> self . class_path = self . class_components [ : - <NUM_LIT:1> ] <EOL> self . class_name = self . class_components [ - <NUM_LIT:1> ] <EOL> self . full_class_name = self . cls . name <EOL> self . method = method <EOL> self . descriptor = descriptor <EOL> def class2func ( path ) : <EOL> '''<STR_LIT>''' <EOL> func = "<STR_LIT>" + path . replace ( "<STR_LIT:/>" , "<STR_LIT:_>" ) . replace ( "<STR_LIT:$>" , "<STR_LIT:_>" ) . replace ( "<STR_LIT:;>" , "<STR_LIT>" ) <EOL> return func <EOL> def method2func ( method ) : <EOL> return "<STR_LIT>" + method . replace ( "<STR_LIT:/>" , "<STR_LIT:_>" ) . replace ( "<STR_LIT:[>" , "<STR_LIT>" ) . replace ( "<STR_LIT:(>" , <EOL> "<STR_LIT>" ) . replace ( "<STR_LIT:)>" , "<STR_LIT>" ) . replace ( "<STR_LIT:;>" , "<STR_LIT>" ) <EOL> def classmethod2func ( class_ , method_ ) : <EOL> '''<STR_LIT>''' <EOL> return "<STR_LIT>" % ( class2func ( class_ ) , method2func ( method_ ) ) <EOL> def classmethod2display ( class_ , method_ , descriptor_ ) : <EOL> '''<STR_LIT>''' <EOL> return "<STR_LIT>" % ( class_ , method_ , descriptor_ ) <EOL> def display2classmethod ( display ) : <EOL> '''<STR_LIT>''' <EOL> L = display . split ( "<STR_LIT>" ) <EOL> return ( L [ <NUM_LIT:0> ] , L [ <NUM_LIT:1> ] ) <EOL> def classdot2func ( path ) : <EOL> '''<STR_LIT>''' <EOL> func = "<STR_LIT>" + path . replace ( "<STR_LIT:.>" , "<STR_LIT:_>" ) . replace ( "<STR_LIT:$>" , "<STR_LIT:_>" ) <EOL> return func <EOL> def classdot2class ( path ) : <EOL> '''<STR_LIT>''' <EOL> if path [ <NUM_LIT:0> ] == '<STR_LIT:L>' and path [ - <NUM_LIT:1> ] == '<STR_LIT:;>' : <EOL> print "<STR_LIT>" % path <EOL> return path <EOL> new_name = '<STR_LIT:L>' + path . replace ( '<STR_LIT:.>' , '<STR_LIT:/>' ) + '<STR_LIT:;>' <EOL> return new_name <EOL> def proto2methodprotofunc ( proto ) : <EOL> '''<STR_LIT>''' <EOL> return proto . replace ( '<STR_LIT:U+0020>' , '<STR_LIT>' ) . replace ( '<STR_LIT:(>' , '<STR_LIT>' ) . replace ( '<STR_LIT:[>' , '<STR_LIT>' ) . replace ( '<STR_LIT:)>' , '<STR_LIT>' ) . replace ( '<STR_LIT:/>' , '<STR_LIT:_>' ) . replace ( '<STR_LIT:;>' , '<STR_LIT>' ) </s>
