public final class And extends CompositeQueryExpression
And class is a composite dynamic query expression that
successfully matches with a profile only if all nested query expressions
also match with the profile.| Constructor and Description |
|---|
And(QueryExpression[] exprs)
Create an
And query expression initially populated with the
expressions contained in the specified array. |
And(QueryExpression expr1,
QueryExpression expr2)
Create an
And query expression initially populated with the two
specified query expressions. |
| Modifier and Type | Method and Description |
|---|---|
And |
and(QueryExpression expr)
Add the specified query expression to this composite expression.
|
protected void |
toString(StringBuffer buf)
Get a string representation for this query expression.
|
add, getExpressionstoStringpublic And(QueryExpression expr1, QueryExpression expr2)
And query expression initially populated with the two
specified query expressions.expr1 - the first query expression to add.expr2 - the second query expression to add.NullPointerException - if either argument is null.public And(QueryExpression[] exprs)
And query expression initially populated with the
expressions contained in the specified array.exprs - the query expressions to add.NullPointerException - if exprs is null or
contains null elements.IllegalArgumentException - if the length of exprs is
less than 2.public And and(QueryExpression expr) throws NullPointerException, IllegalArgumentException
expr - the query expression to add.this.NullPointerException - if expr is null.IllegalArgumentException - if adding the query expression to this
composite expression would generate a cyclic expression.protected void toString(StringBuffer buf)
QueryExpressiontoString in class QueryExpressionbuf - a string buffer the string representation should be appended to.