Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.query.sql.model
Class MultiExpression

java.lang.Object
  extended by org.nuxeo.ecm.core.query.sql.model.Expression
      extended by org.nuxeo.ecm.core.query.sql.model.Predicate
          extended by org.nuxeo.ecm.core.query.sql.model.MultiExpression
All Implemented Interfaces:
Serializable, ASTNode, Operand

public class MultiExpression
extends Predicate

An expression for an single operator with an arbitrary number of operands.

It extends Predicate but it's really not a real Predicate (some users of Predicate expect it to have lvalue and rvalue fields, which are null in this class).

Author:
Florent Guillaume
See Also:
Serialized Form

Field Summary
 List<Operand> values
           
 
Fields inherited from class org.nuxeo.ecm.core.query.sql.model.Expression
lvalue, operator, rvalue
 
Constructor Summary
MultiExpression(Operator operator, List<Operand> values)
           
 
Method Summary
 void accept(IVisitor visitor)
          Accept the given visitor.
 boolean equals(Object other)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.nuxeo.ecm.core.query.sql.model.Expression
isPathExpression, isSuffix
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

values

public final List<Operand> values
Constructor Detail

MultiExpression

public MultiExpression(Operator operator,
                       List<Operand> values)
Method Detail

accept

public void accept(IVisitor visitor)
Description copied from interface: ASTNode
Accept the given visitor.

Specified by:
accept in interface ASTNode
Overrides:
accept in class Expression
Parameters:
visitor - the AST node visitor

toString

public String toString()
Overrides:
toString in class Expression

equals

public boolean equals(Object other)
Overrides:
equals in class Expression

hashCode

public int hashCode()
Overrides:
hashCode in class Expression

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.