public static Rule getRule(final String expression, final boolean isPostFix) {
    String postFix = expression;
    if (!isPostFix) {
      postFix = CONVERTER.convert(expression);
    }

    return new ExpressionRule(COMPILER.compileExpression(postFix));
  }
Get rule.

@param expression expression.
@param isPostFix  If post-fix.
@return rule
olv-core/src/main/java/pl/otros/logview/accept/query/org/apache/log4j/rule/ExpressionRule.java