Search in sources :

Example 1 with BooleanExpression

use of org.apache.qpid.server.filter.BooleanExpression in project qpid-broker-j by apache.

the class ConfiguredObjectFilterParser method filter.

// ----------------------------------------------------------------------------
// Grammar
// ----------------------------------------------------------------------------
public final BooleanExpression filter() throws ParseException {
    Expression left = null;
    left = orExpression();
    jj_consume_token(0);
    {
        if (true)
            return asBooleanExpression(left);
    }
    throw new Error("Missing return statement in function");
}
Also used : ArithmeticExpression(org.apache.qpid.server.filter.ArithmeticExpression) NamedExpression(org.apache.qpid.server.filter.NamedExpression) ComparisonExpression(org.apache.qpid.server.filter.ComparisonExpression) LogicExpression(org.apache.qpid.server.filter.LogicExpression) OrderByExpression(org.apache.qpid.server.filter.OrderByExpression) UnaryExpression(org.apache.qpid.server.filter.UnaryExpression) ConstantExpression(org.apache.qpid.server.filter.ConstantExpression) Expression(org.apache.qpid.server.filter.Expression) BooleanExpression(org.apache.qpid.server.filter.BooleanExpression)

Example 2 with BooleanExpression

use of org.apache.qpid.server.filter.BooleanExpression in project qpid-broker-j by apache.

the class SelectorParser method JmsSelector.

// ----------------------------------------------------------------------------
// Grammer
// ----------------------------------------------------------------------------
public final BooleanExpression JmsSelector() throws ParseException {
    Expression left = null;
    left = orExpression();
    jj_consume_token(0);
    {
        if (true)
            return asBooleanExpression(left);
    }
    throw new Error("Missing return statement in function");
}
Also used : ArithmeticExpression(org.apache.qpid.server.filter.ArithmeticExpression) ConstantExpression(org.apache.qpid.server.filter.ConstantExpression) PropertyExpression(org.apache.qpid.server.filter.PropertyExpression) ComparisonExpression(org.apache.qpid.server.filter.ComparisonExpression) Expression(org.apache.qpid.server.filter.Expression) LogicExpression(org.apache.qpid.server.filter.LogicExpression) BooleanExpression(org.apache.qpid.server.filter.BooleanExpression) UnaryExpression(org.apache.qpid.server.filter.UnaryExpression)

Aggregations

ArithmeticExpression (org.apache.qpid.server.filter.ArithmeticExpression)2 BooleanExpression (org.apache.qpid.server.filter.BooleanExpression)2 ComparisonExpression (org.apache.qpid.server.filter.ComparisonExpression)2 ConstantExpression (org.apache.qpid.server.filter.ConstantExpression)2 Expression (org.apache.qpid.server.filter.Expression)2 LogicExpression (org.apache.qpid.server.filter.LogicExpression)2 UnaryExpression (org.apache.qpid.server.filter.UnaryExpression)2 NamedExpression (org.apache.qpid.server.filter.NamedExpression)1 OrderByExpression (org.apache.qpid.server.filter.OrderByExpression)1 PropertyExpression (org.apache.qpid.server.filter.PropertyExpression)1