Class InFixToPostFix
java.lang.Object
org.apache.log4j.rule.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
Supports grouping via parens, mult-word operands using single or double quotes,
and these operators:
! NOT operator
!= NOT EQUALS operator
== EQUALS operator
~= CASE-INSENSITIVE equals operator
|| OR operator
invalid input: '&'invalid input: '&' AND operator
like REGEXP operator
exists NOT NULL operator
invalid input: '<' LESS THAN operator
invalid input: '>' GREATER THAN operator
invalid input: '<'= LESS THAN EQUALS operator
invalid input: '>'= GREATER THAN EQUALS operator- Author:
- Scott Deboy (sdeboy@apache.org)
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InFixToPostFix
public InFixToPostFix()
-
-
Method Details
-
convert
-
isOperand
Evaluates whether symbol is operand.- Parameters:
s- symbol.- Returns:
- true if operand.
-