#NEWLINE# def normalizedMethodNames( self , methodText , interfaceName = None ) : #NEWLINE# #INDENT# match = re . match ( '(.*)\\((.*)\\)(.*)' , methodText ) #NEWLINE# if match : #NEWLINE# #INDENT# tokens = tokenizer . Tokenizer ( match . group ( 2 ) ) #NEWLINE# if ArgumentList . peek ( tokens ) : #NEWLINE# #INDENT# arguments = ArgumentList ( tokens , None ) #NEWLINE# return [ ( ( ( match . group ( 1 ) + '(' ) + argumentName ) + ')' ) for argumentName in arguments . argumentNames ] #NEWLINE# #UNINDENT# name = ( match . group ( 1 ) + match . group ( 3 ) ) #NEWLINE# arguments = match . group ( 2 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# name = methodText #NEWLINE# arguments = '' #NEWLINE# #UNINDENT# if interfaceName : #NEWLINE# #INDENT# interface = self . find ( interfaceName ) #NEWLINE# if interface : #NEWLINE# #INDENT# method = interface . findMethod ( name ) #NEWLINE# if method : #NEWLINE# #INDENT# return method . methodNames #NEWLINE# #UNINDENT# #UNINDENT# return [ ( ( ( name + '(' ) + arguments ) + ')' ) ] #NEWLINE# #UNINDENT# for construct in self . constructs : #NEWLINE# #INDENT# method = construct . findMethod ( name ) #NEWLINE# if method : #NEWLINE# #INDENT# return method . methodNames #NEWLINE# #UNINDENT# #UNINDENT# construct = self . find ( name ) #NEWLINE# if ( construct and ( 'method' == construct . idlType ) ) : #NEWLINE# #INDENT# return construct . methodNames #NEWLINE# #UNINDENT# return [ ( ( ( name + '(' ) + arguments ) + ')' ) ]