#NEWLINE# @ staticmethod #NEWLINE# def mem_access_has_only( mem_access , names ) : #NEWLINE# #INDENT# if ( not X86 . is_mem_acces ( mem_access ) ) : #NEWLINE# #INDENT# raise ValueError ( 'mem_access_has_only' ) #NEWLINE# #UNINDENT# for f in mem_access . _fields : #NEWLINE# #INDENT# v = getattr ( mem_access , f ) #NEWLINE# if ( v and ( f != 'prefix' ) and ( f not in names ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( ( v is None ) and ( f in names ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True