org.apache.log4j.rule
Class InFixToPostFix
java.lang.Object
org.apache.log4j.rule.InFixToPostFix
- public class InFixToPostFix
- extends Object
A helper class which converts infix expressions to postfix expressions
Currently grouping is supported, as well as all of the Rules supported by RuleFactory
NOTE: parsing is supported through the use of StringTokenizer
, which means
all tokens in the expression must be separated by spaces.
Supports grouping via parens, mult-word operands using single quotes, and these operators:
! NOT operator
!= NOT EQUALS operator
== EQUALS operator
~= CASE-INSENSITIVE equals operator
|| OR operator
&& AND operator
like REGEXP operator
exists NOT NULL operator
< LESS THAN operator
> GREATER THAN operator
<= LESS THAN EQUALS operator
>= GREATER THAN EQUALS operator
- Author:
- Scott Deboy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InFixToPostFix
public InFixToPostFix()
convert
public String convert(String expression)
Copyright 2000-2005 Apache Software Foundation.