return null;
}
private boolean areCompatibleNodes( int node1, int node2 )
{
Expression expression = matchGraph.getVertex( node1 );
FlowElement flowElement = elementGraph.getVertex( node2 );
boolean result;
if( ( (ElementExpression) expression ).getCapture() == ElementCapture.Primary &&
!finderContext.getRequiredElements().isEmpty() )
result = finderContext.isRequired( flowElement );
else if( finderContext.isExcluded( flowElement ) || finderContext.isIgnored( flowElement ) )
result = false;
else
result = expression.applies( plannerContext, elementGraph.getDelegate(), flowElement );
if( LOG.isDebugEnabled() && result )
LOG.debug( "compatible nodes: {} with {}", flowElement, expression );
return result;