Class Expression.AssertionExpression<E>

  • Type Parameters:
    E -
    All Implemented Interfaces:
    com.google.common.base.Predicate<E>, Expression<E>, java.util.function.Predicate<E>
    Direct Known Subclasses:
    Expression.EndAssertion, Expression.StartAssertion
    Enclosing interface:
    Expression<E>

    public abstract static class Expression.AssertionExpression<E>
    extends java.lang.Object
    implements Expression<E>
    A non-consuming expression that matches a token against a property of the text, such as the start or end of a line.
    • Constructor Detail

      • AssertionExpression

        public AssertionExpression()
    • Method Detail

      • apply

        public boolean apply​(E entity)
        Specified by:
        apply in interface com.google.common.base.Predicate<E>
      • apply

        public abstract boolean apply​(boolean hasStart,
                                      java.util.List<E> tokens,
                                      int count)