Class ZestExpressionRegex

    • Constructor Detail

      • ZestExpressionRegex

        public ZestExpressionRegex()
        Instantiates a new zest expression regex.
      • ZestExpressionRegex

        public ZestExpressionRegex​(String variableName,
                                   String regex)
        Instantiates a new zest expression regex.
        Parameters:
        variableName - the variableName
        regex - the regex
      • ZestExpressionRegex

        public ZestExpressionRegex​(String variableName,
                                   String regex,
                                   boolean caseExact,
                                   boolean inverse)
        Instantiates a new zest expression regex.
        Parameters:
        variableName - the variableName
        regex - the regex
        caseExact - the case exact
        inverse - the inverse
    • Method Detail

      • isTrue

        public boolean isTrue​(ZestRuntime runtime)
        Description copied from interface: ZestExpressionElement
        the boolean value result of the expression without inverse flag.
        Parameters:
        runtime - the runtime
        Returns:
        the boolean value of the expression without inverse flag
      • getVariableName

        public String getVariableName()
        Gets the variable name.
        Returns:
        the variable name
      • setVariableName

        public void setVariableName​(String variableName)
        Sets the variable name.
        Parameters:
        variableName - the new variable name
      • getRegex

        public String getRegex()
        Gets the regex.
        Returns:
        the regex
      • setRegex

        public void setRegex​(String regex)
        Sets the regex.
        Parameters:
        regex - the new regex
      • isCaseExact

        public boolean isCaseExact()
        Checks if is case exact.
        Returns:
        true, if is case exact
      • setCaseExact

        public void setCaseExact​(boolean caseExact)
        Sets the case exact.
        Parameters:
        caseExact - the new case exact