case( BranchNode.OR ):
Iterator children = bnode.getChildren().iterator();
while ( children.hasNext() )
{
ExprNode child = ( ExprNode ) children.next();
if ( evaluate( child, record ) )
{
return true;
}
}
return false;
case( BranchNode.AND ):
children = bnode.getChildren().iterator();
while ( children.hasNext() )
{
ExprNode child = ( ExprNode ) children.next();
if ( ! evaluate( child, record ) )
{
return false;
}