|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.log4j.rule.InFixToPostFix
public class InFixToPostFix
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
| Constructor Summary | |
|---|---|
InFixToPostFix()
Create new instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
convert(java.lang.String expression)
Convert in-fix expression to post-fix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InFixToPostFix()
| Method Detail |
|---|
public java.lang.String convert(java.lang.String expression)
expression - in-fix expression.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||