Class ExpressionParser
java.lang.Object
org.apache.hadoop.hbase.security.visibility.ExpressionParser
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final char
private static final char
private static final char
private static final char
private static final char
private static final char
private static final char
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
endDoubleQuotesFound
(byte b) private static Operator
getOperator
(byte op) private static boolean
isEndOfLabel
(byte b) 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)
-
Field Details
-
CLOSE_PARAN
- See Also:
-
OPEN_PARAN
- See Also:
-
OR
- See Also:
-
AND
- See Also:
-
NOT
- See Also:
-
SPACE
- See Also:
-
DOUBLE_QUOTES
- See Also:
-
-
Constructor Details
-
ExpressionParser
public ExpressionParser()
-
-
Method Details
-
parse
- Throws:
ParseException
-
skipSpaces
-
processCloseParan
private void processCloseParan(Stack<ExpressionNode> expStack, String expS, int index) throws ParseException - Throws:
ParseException
-
processOpenParan
private void processOpenParan(Stack<ExpressionNode> expStack, String expS, int index) throws ParseException - Throws:
ParseException
-
processLabelExpNode
private void processLabelExpNode(LeafExpressionNode node, Stack<ExpressionNode> expStack, String expS, int index) throws ParseException - Throws:
ParseException
-
processANDorOROp
private void processANDorOROp(Operator op, Stack<ExpressionNode> expStack, String expS, int index) throws ParseException - Throws:
ParseException
-
processNOTOp
private void processNOTOp(Stack<ExpressionNode> expStack, String expS, int index) throws ParseException - Throws:
ParseException
-
endDoubleQuotesFound
-
isEndOfLabel
-
getOperator
-