@InterfaceAudience.Private public class ExpressionParser extends Object
Modifier and Type | Field and Description |
---|---|
private static char |
AND |
private static char |
CLOSE_PARAN |
private static char |
DOUBLE_QUOTES |
private static char |
NOT |
private static char |
OPEN_PARAN |
private static char |
OR |
private static char |
SPACE |
Constructor and Description |
---|
ExpressionParser() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
endDoubleQuotesFound(byte b) |
private static Operator |
getOperator(byte op) |
private static boolean |
isEndOfLabel(byte b) |
ExpressionNode |
parse(String expS) |
private void |
processANDorOROp(Operator op,
Stack<ExpressionNode> expStack,
String expS,
int index) |
private void |
processCloseParan(Stack<ExpressionNode> expStack,
String expS,
int index) |
private void |
processLabelExpNode(LeafExpressionNode node,
Stack<ExpressionNode> expStack,
String expS,
int index) |
private void |
processNOTOp(Stack<ExpressionNode> expStack,
String expS,
int index) |
private void |
processOpenParan(Stack<ExpressionNode> expStack,
String expS,
int index) |
private int |
skipSpaces(byte[] exp,
int index) |
private static final char CLOSE_PARAN
private static final char OPEN_PARAN
private static final char OR
private static final char AND
private static final char NOT
private static final char SPACE
private static final char DOUBLE_QUOTES
public ExpressionParser()
public ExpressionNode parse(String expS) throws ParseException
ParseException
private int skipSpaces(byte[] exp, int index)
private void processCloseParan(Stack<ExpressionNode> expStack, String expS, int index) throws ParseException
ParseException
private void processOpenParan(Stack<ExpressionNode> expStack, String expS, int index) throws ParseException
ParseException
private void processLabelExpNode(LeafExpressionNode node, Stack<ExpressionNode> expStack, String expS, int index) throws ParseException
ParseException
private void processANDorOROp(Operator op, Stack<ExpressionNode> expStack, String expS, int index) throws ParseException
ParseException
private void processNOTOp(Stack<ExpressionNode> expStack, String expS, int index) throws ParseException
ParseException
private static boolean endDoubleQuotesFound(byte b)
private static boolean isEndOfLabel(byte b)
private static Operator getOperator(byte op)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.