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
Predicatebut 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 voidaccept(IVisitor visitor)Accept the given visitor.booleanequals(Object other)protected booleanequals(MultiExpression other)inthashCode()StringtoString()-
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:ASTNodeAccept the given visitor.- Specified by:
acceptin interfaceASTNode- Overrides:
acceptin classExpression- Parameters:
visitor- the AST node visitor
-
toString
public String toString()
- Overrides:
toStringin classExpression
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classExpression
-
equals
protected boolean equals(MultiExpression other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classExpression
-
-