parameters: (self)
return_statement: return False
docstring: :rtype: bool
docstring_summary: :rtype: bool
docstring_tokens: : rtype : bool
function: def hasNext(self):
          """
          :rtype: bool
          """
          while self.stack:
              top = self.stack[-1]
              if top.isInteger():
                  return True
              else:
                  self.stack = self.stack[:-1] + top.getList()[::-1]
          
          return False
function_tokens: def hasNext ( self ) : while self . stack : top = self . stack [ - 1 ] if top . isInteger ( ) : return True else : self . stack = self . stack [ : - 1 ] + top . getList ( ) [ : : - 1 ] return False