Interface Expression

All Superinterfaces:
Predicate<Version>
All Known Implementing Classes:
CompositeExpression

public interface Expression extends Predicate<Version>
The Expression interface is to be implemented by the nodes of the Abstract Syntax Tree produced by the ExpressionParser class.
Since:
0.7.0
Author:
Zafar Khaja <zafarkhaja@gmail.com>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    interpret(Version version)
    Interprets the expression.
    default boolean
    test(Version version)
     

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Method Details

    • interpret

      boolean interpret(Version version)
      Interprets the expression.
      Parameters:
      version - the version to interpret against
      Returns:
      the result of the expression interpretation
    • test

      default boolean test(Version version)
      Specified by:
      test in interface Predicate<Version>