Class ZestLoopString

    • Constructor Detail

      • ZestLoopString

        public ZestLoopString()
        Instantiates a new zest loop string.
      • ZestLoopString

        public ZestLoopString​(String name,
                              String[] values)
        Instantiates a new zest loop string.
        Parameters:
        name - the name
        values - the values
      • ZestLoopString

        public ZestLoopString​(String[] values)
        Instantiates a new zest loop string.
        Parameters:
        values - the values
      • ZestLoopString

        public ZestLoopString​(int index)
        Instantiates a new zest loop string.
        Parameters:
        index - the index of the statement loop.
      • ZestLoopString

        public ZestLoopString​(int index,
                              String[] values)
        Instantiates a new zest loop string.
        Parameters:
        index - the index of the statement
        values - the values
    • Method Detail

      • getValues

        public String[] getValues()
        Gets the values.
        Returns:
        the values
      • 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()