private boolean hasExpressionWithOperator ( Operator op ) { for ( UriTemplateComponent c : components ) { if ( Expression . class . isInstance ( c ) ) { Expression e = ( Expression ) c ; if ( e . getOperator ( ) == op ) { return true ; } } } return false ; }
Scans the components for an expression with the specified operator .