Class ZestAssertion


  • public class ZestAssertion
    extends ZestElement
    The Class ZestAssertion.
    • Constructor Detail

      • ZestAssertion

        public ZestAssertion()
        Instantiates a new zest assertion.
      • ZestAssertion

        public ZestAssertion​(ZestExpressionElement rootExpr)
        Instantiates a new zest assertion.
        Parameters:
        rootExpr - the root expr
    • Method Detail

      • getRootExpression

        public ZestExpressionElement getRootExpression()
        Gets the root expression.
        Returns:
        the root expression
      • setRootExpression

        public ZestExpressionElement setRootExpression​(ZestExpressionElement new_rootExpression)
        Sets the root expression.
        Parameters:
        new_rootExpression - the new_root expression
        Returns:
        the zest expression element
      • isValid

        public boolean isValid​(ZestRuntime runtime)
        Checks if is valid.
        Parameters:
        runtime - the runtime
        Returns:
        true, if is valid
      • isSameSubclass

        public boolean isSameSubclass​(ZestElement ze)
        Description copied from class: ZestElement
        Checks if is same subclass.
        Overrides:
        isSameSubclass in class ZestElement
        Parameters:
        ze - the ze
        Returns:
        true, if is same subclass