org.neo4j.graphmatching.filter
Class FilterBinaryNode
java.lang.Object
org.neo4j.graphmatching.filter.FilterBinaryNode
- All Implemented Interfaces:
- FilterExpression
public class FilterBinaryNode
- extends Object
- implements FilterExpression
Matches two FilterExpression
s with AND or OR.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterBinaryNode
public FilterBinaryNode(FilterExpression expression1,
boolean trueForAnd,
FilterExpression expression2)
- Constructs a new binary node which has two expressions, grouped together
as one.
- Parameters:
expression1
- the first expression.trueForAnd
- true
if AND, else OR.expression2
- the second expression.
matches
public boolean matches(FilterValueGetter valueGetter)
- Description copied from interface:
FilterExpression
- Matches a value from a
valueGetter
and returns whether or not
there was a match.
- Specified by:
matches
in interface FilterExpression
- Parameters:
valueGetter
- the getter which fetches the value to match.
- Returns:
- whether or not the value from
valueGetter
matches
the criterias found in this expression.
getLeftExpression
public FilterExpression getLeftExpression()
- Returns:
- the first expression of the two.
getRightExpression
public FilterExpression getRightExpression()
- Returns:
- the second expression of the two.
Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.