Class ZestLoopFile

    • Constructor Detail

      • ZestLoopFile

        public ZestLoopFile​(String pathToFile)
                     throws FileNotFoundException
        Instantiates a new zest loop file.
        Parameters:
        pathToFile - the path to the file which contains the loop values
        Throws:
        FileNotFoundException - the file not found exception
      • ZestLoopFile

        public ZestLoopFile​(int index,
                            String pathToFile)
                     throws FileNotFoundException
        Instantiates a new zest loop file.
        Parameters:
        index - the index of the statement
        pathToFile - the path to the file which contains the loop values
        Throws:
        FileNotFoundException - the file not found exception
    • Method Detail

      • getFile

        public File getFile()
        returns the file of this loop.
        Returns:
        the file of this loop
      • isLastState

        public boolean isLastState()
        Description copied from class: ZestLoop
        checks if the loop is on its last state
        Specified by:
        isLastState in class ZestLoop<String>
        Returns:
        true if the loop is over
      • increase

        public void increase()
        Description copied from class: ZestLoop
        increase the loop indexes
        Specified by:
        increase in class ZestLoop<String>
      • toLastState

        public void toLastState()
        Description copied from class: ZestLoop
        ends the loop taking its current state to the last state
        Specified by:
        toLastState in class ZestLoop<String>
      • getCurrentToken

        public String getCurrentToken()
        Description copied from class: ZestLoop
        return the current token considered inside the loop.
        Overrides:
        getCurrentToken in class ZestLoop<String>
        Returns:
        the current token considered inside the loop
      • loop

        public boolean loop()
      • endLoop

        public void endLoop()