Class ZestLoopRegex

    • Constructor Detail

      • ZestLoopRegex

        public ZestLoopRegex​(String variableName,
                             String inputVariableName,
                             String regex,
                             int groupIndex,
                             boolean caseExact)
      • ZestLoopRegex

        public ZestLoopRegex()
        Instantiates a new zest loop regex.
    • Method Detail

      • 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()
      • getInputVariableName

        public String getInputVariableName()
      • getRegex

        public String getRegex()
      • isCaseExact

        public boolean isCaseExact()
      • setInputVariableName

        public void setInputVariableName​(String variableName)
      • setRegex

        public void setRegex​(String regex)
      • setCaseExact

        public void setCaseExact​(boolean caseExact)
      • getGroupIndex

        public int getGroupIndex()
      • setGroupIndex

        public void setGroupIndex​(int groupIndex)