Class AbstractOperatorNode
- java.lang.Object
-
- org.xwiki.notifications.filters.expression.generics.AbstractNode
-
- org.xwiki.notifications.filters.expression.generics.AbstractOperatorNode
-
- All Implemented Interfaces:
ExpressionNode
- Direct Known Subclasses:
AbstractBinaryOperatorNode
,AbstractUnaryOperatorNode
,InNode
,InSubQueryNode
public abstract class AbstractOperatorNode extends AbstractNode
Generic operator node definition for filtering expressions.- Since:
- 9.8RC1
- Version:
- $Id: 1ba862b0ef5b07625ee1705efd8c2b53703a6430 $
-
-
Field Summary
-
Fields inherited from class org.xwiki.notifications.filters.expression.generics.AbstractNode
EMPTY_NODE
-
-
Constructor Summary
Constructors Constructor Description AbstractOperatorNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AndNode
and(AbstractOperatorNode node)
Helper to construct newAndNode
using the current object.OrNode
or(AbstractOperatorNode node)
Helper to construct newOrNode
using the current object.
-
-
-
Method Detail
-
and
public AndNode and(AbstractOperatorNode node)
Helper to construct newAndNode
using the current object.- Parameters:
node
- the node that should be the second operand of the AND node- Returns:
- a
AndNode
with the current object as the first operator and the given node as the second operator
-
or
public OrNode or(AbstractOperatorNode node)
Helper to construct newOrNode
using the current object.- Parameters:
node
- the node that should be the second operand of the OR node- Returns:
- a
OrNode
with the current object as the first operator and the given node as the second operator
-
-