Class ZestExpressionLength

    • Constructor Detail

      • ZestExpressionLength

        public ZestExpressionLength()
        Instantiates a new zest expression length.
      • ZestExpressionLength

        public ZestExpressionLength​(String variableName,
                                    int length,
                                    int approx)
        Instantiates a new zest expression length.
        Parameters:
        variableName - the variable name
        length - the length
        approx - the approx
      • ZestExpressionLength

        public ZestExpressionLength​(String variableName,
                                    int length,
                                    int approx,
                                    boolean inverse)
        Instantiates a new zest expression length.
        Parameters:
        variableName - the variable name
        length - the length
        approx - the approximation
        inverse - is inverse?
    • Method Detail

      • 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
      • getLength

        public int getLength()
        Gets the length.
        Returns:
        the length
      • setLength

        public void setLength​(int length)
        Sets the length.
        Parameters:
        length - the new length
      • getApprox

        public int getApprox()
        Gets the approx.
        Returns:
        the approx
      • setApprox

        public void setApprox​(int approx)
        Sets the approx.
        Parameters:
        approx - the new approx
      • 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