Class MultiExpression
- java.lang.Object
-
- org.nuxeo.ecm.core.query.sql.model.Expression
-
- org.nuxeo.ecm.core.query.sql.model.Predicate
-
- 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
Fields Modifier and Type Field Description List<Predicate>
predicates
-
Fields inherited from class org.nuxeo.ecm.core.query.sql.model.Expression
info, lvalue, operator, rvalue
-
-
Constructor Summary
Constructors Constructor Description MultiExpression(MultiExpression other)
Copy constructor.MultiExpression(Operator operator, List<Predicate> predicates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(IVisitor visitor)
Accept the given visitor.boolean
equals(Object other)
protected boolean
equals(MultiExpression other)
int
hashCode()
String
toString()
-
Methods inherited from class org.nuxeo.ecm.core.query.sql.model.Expression
getInfo, isPathExpression, isSuffix, setInfo
-
-
-
-
Constructor Detail
-
MultiExpression
public MultiExpression(MultiExpression other)
Copy constructor.- Since:
- 10.3
-
-
Method Detail
-
accept
public void accept(IVisitor visitor)
Description copied from interface:ASTNode
Accept the given visitor.- Specified by:
accept
in interfaceASTNode
- Overrides:
accept
in classExpression
- Parameters:
visitor
- the AST node visitor
-
toString
public String toString()
- Overrides:
toString
in classExpression
-
equals
public boolean equals(Object other)
- Overrides:
equals
in classExpression
-
equals
protected boolean equals(MultiExpression other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classExpression
-
-