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 AndNodeand(AbstractOperatorNode node)Helper to construct newAndNodeusing the current object.OrNodeor(AbstractOperatorNode node)Helper to construct newOrNodeusing the current object.
-
-
-
Method Detail
-
and
public AndNode and(AbstractOperatorNode node)
Helper to construct newAndNodeusing the current object.- Parameters:
node- the node that should be the second operand of the AND node- Returns:
- a
AndNodewith the current object as the first operator and the given node as the second operator
-
or
public OrNode or(AbstractOperatorNode node)
Helper to construct newOrNodeusing the current object.- Parameters:
node- the node that should be the second operand of the OR node- Returns:
- a
OrNodewith the current object as the first operator and the given node as the second operator
-
-