|
Oracle Fusion Middleware Java API Reference for Oracle Help 12c (12.1.2) E48720-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.help.common.search.BooleanExpression
public class BooleanExpression
BooleanExpression is a recursive tree structure for expressing search criteria involving boolean expressions. The BooleanExpression is based on the following grammar : BooleanExpression :: BooleanExpression AND BooleanExpression BooleanExpression OR BooleanExpression BooleanExpression NOT BooleanExpression BooleanExpression + BooleanExpression BooleanExpression - BooleanExpression + BooleanExpression - BooleanExpression NOT BooleanExpression StringExpression (base case) The tree is built in such a way that StringExpression are the leaf items and the expressions occupy the branch items. For example, "Oracle Discoverer AND (Browser OR Query)" will be parsed into : AND / \ Oracle Discoverer OR / \ Browser Query
| Field Summary |
|---|
| Fields inherited from interface oracle.help.common.search.SearchExpression |
|---|
AND, NAND, NONE, NOT, OR |
| Constructor Summary | |
|---|---|
BooleanExpression(SearchExpression expr1, SearchExpression expr2, int operator, boolean caseSensitive)Constructs a BooleanExpression object. |
|
| Method Summary | |
|---|---|
static SearchExpression |
buildExpressionTree(java.lang.String buffer, boolean caseSensitive)Utility method to build a SearchExpression tree from list of words possibly containing paranthesis, ANDs, ORs, NOTs, "+"s and "-"s. |
java.lang.String[] |
getData()Returns the data associated with the expression. |
SearchExpression |
getExpression1()Returns the left hand side expression. |
SearchExpression |
getExpression2()Returns the right hand side expression. |
int |
getOperator()Returns the operator for this boolean expression. |
static int |
isBooleanOperator(java.lang.String word) |
boolean |
isCaseSensitive()Returns true if the SearchExpression is case sensitive, and false otherwise. |
void |
print()Prints a SearchExpression recursively. |
void |
setCaseSensitive(boolean caseSensitive) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanExpression(SearchExpression expr1,
SearchExpression expr2,
int operator,
boolean caseSensitive)
expr1 - SearchExpression1expr2 - SearchExpression2operator - Possible values are SearchExpression.AND, SearchExpression.OR and SearchExpression.NOT| Method Detail |
|---|
public SearchExpression getExpression1()
getExpression1 in interface SearchExpressionpublic SearchExpression getExpression2()
getExpression2 in interface SearchExpressionpublic java.lang.String[] getData()
SearchExpressiongetData in interface SearchExpressionpublic int getOperator()
getOperator in interface SearchExpressionpublic boolean isCaseSensitive()
SearchExpressionisCaseSensitive in interface SearchExpressionpublic void setCaseSensitive(boolean caseSensitive)
public void print()
print in interface SearchExpression
public static SearchExpression buildExpressionTree(java.lang.String buffer,
boolean caseSensitive)
throws SearchException
SearchExceptionpublic static int isBooleanOperator(java.lang.String word)
|
Oracle Fusion Middleware Java API Reference for Oracle Help 12c (12.1.2) E48720-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||