Search in sources :

Example 1 with PropertyExpression

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

the class SelectorParser method variable.

public final PropertyExpression variable() throws ParseException {
    Token t;
    StringBuffer rc = new StringBuffer();
    PropertyExpression left = null;
    switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
        case ID:
            t = jj_consume_token(ID);
            left = _factory.createPropertyExpression(t.image);
            break;
        case QUOTED_ID:
            t = jj_consume_token(QUOTED_ID);
            // Decode the sting value.
            String image = t.image;
            for (int i = 1; i < image.length() - 1; i++) {
                char c = image.charAt(i);
                if (c == '"') {
                    i++;
                }
                rc.append(c);
            }
            {
                if (true)
                    return _factory.createPropertyExpression(rc.toString());
            }
            break;
        default:
            jj_consume_token(-1);
            throw new ParseException();
    }
    {
        if (true)
            return left;
    }
    throw new Error("Missing return statement in function");
}
Also used : PropertyExpression(org.apache.qpid.server.filter.PropertyExpression)

Aggregations

PropertyExpression (org.apache.qpid.server.filter.PropertyExpression)1