Class ZestExpressionIsInteger

  • All Implemented Interfaces:
    ZestExpressionElement

    public class ZestExpressionIsInteger
    extends ZestExpression
    Represent an expression that tests to see if a variable value is an integer.
    • Constructor Detail

      • ZestExpressionIsInteger

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

        public ZestExpressionIsInteger​(String variableName)
        Instantiates a new zest expression isInteger.
        Parameters:
        variableName - the variableName
      • ZestExpressionIsInteger

        public ZestExpressionIsInteger​(String variableName,
                                       boolean inverse)
        Construct a ZestExpressionIsInteger with the given variable name and inverse state.
        Parameters:
        variableName - the name of the variable to check.
        inverse - if the expression should be the inverse.
        Since:
        0.14.0
    • 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