org.apache.activemq.artemis.selector.filter

## Class XQueryExpression

- java.lang.Object
- - org.apache.activemq.artemis.selector.filter.XQueryExpression

- All Implemented Interfaces:
    BooleanExpression, Expression

      public final class XQueryExpression
      extends Object
      implements BooleanExpression

  Used to evaluate an XQuery Expression in a JMS selector.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `evaluate(Filterable message)`
    `boolean` | `matches(Filterable message)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### evaluate

          public Object evaluate(Filterable message)
                          throws FilterException

      Specified by:
        `evaluate` in interface `Expression`
      Returns:
        the value of this expression
      Throws:
        `FilterException`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### matches

          public boolean matches(Filterable message)
                          throws FilterException

      Specified by:
        `matches` in interface `BooleanExpression`
      Parameters:
        `message` -
      Returns:
        true if the expression evaluates to Boolean.TRUE.
      Throws:
        `FilterException`

Copyright © 2017. All rights reserved.