public Result accepts(Context context) {
        return Result.toResult(expression.evaluate(context));
    }
Returns true if the document referenced by this context is accepted by this selector

@param context the context to match in
@return true if the document is accepted
@throws RuntimeException if the evaluation enters an illegal state
document/src/main/java/com/yahoo/document/select/DocumentSelector.java