cisco.uc.cuae.search
Class QueryBase.UnOpNode
java.lang.Object
cisco.uc.cuae.search.QueryBase.Node
cisco.uc.cuae.search.QueryBase.UnOpNode
- Enclosing class:
- QueryBase
public static class QueryBase.UnOpNode
- extends QueryBase.Node
Models a unary operator, such as not.
|
Method Summary |
void |
generate(java.io.StringWriter sw,
java.util.List<java.lang.Object> vars,
java.util.Map<java.lang.String,java.lang.String> fields,
java.util.Map<java.lang.String,java.lang.Object> variables)
Generates the text of the query. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
t
public Token t
- the token of the operation
a
public QueryBase.Node a
- the operand of the operation
QueryBase.UnOpNode
public QueryBase.UnOpNode(Token t,
QueryBase.Node a)
- Parameters:
t - the token of the operation.a - the operand of the operation.- See Also:
QueryConstants.NOT
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
generate
public void generate(java.io.StringWriter sw,
java.util.List<java.lang.Object> vars,
java.util.Map<java.lang.String,java.lang.String> fields,
java.util.Map<java.lang.String,java.lang.Object> variables)
throws ParseException
- Description copied from class:
QueryBase.Node
- Generates the text of the query.
- Specified by:
generate in class QueryBase.Node
- Parameters:
sw - output stream of the where clause.vars - values of positional parameters.fields - mapping of field names.variables - mapping of variable values.
- Throws:
ParseException
Copyright © 2008. All Rights Reserved.