SearchListener listener) {
assert listener != null;
listener = applyFilter(filter, listener);
listener = new CountingSearchListener(10, listener);
index.getRelationships(
new NameElementImpl(name),
IndexConstants.IS_REFERENCED_BY_QUALIFIED_RESOLVED,
newCallback(MatchKind.NAME_REFERENCE_RESOLVED, scope, listener));
index.getRelationships(
new NameElementImpl(name),
IndexConstants.IS_REFERENCED_BY_QUALIFIED_UNRESOLVED,
newCallback(MatchKind.NAME_REFERENCE_UNRESOLVED, scope, listener));
// granular resolved operations
index.getRelationships(
new NameElementImpl(name),
IndexConstants.NAME_IS_INVOKED_BY_RESOLVED,
newCallback(MatchKind.NAME_INVOCATION_RESOLVED, scope, listener));
index.getRelationships(
new NameElementImpl(name),
IndexConstants.NAME_IS_READ_BY_RESOLVED,
newCallback(MatchKind.NAME_READ_RESOLVED, scope, listener));
index.getRelationships(
new NameElementImpl(name),
IndexConstants.NAME_IS_READ_WRITTEN_BY_RESOLVED,
newCallback(MatchKind.NAME_READ_WRITE_RESOLVED, scope, listener));
index.getRelationships(
new NameElementImpl(name),
IndexConstants.NAME_IS_WRITTEN_BY_RESOLVED,
newCallback(MatchKind.NAME_WRITE_RESOLVED, scope, listener));
// granular unresolved operations
index.getRelationships(
new NameElementImpl(name),
IndexConstants.NAME_IS_INVOKED_BY_UNRESOLVED,
newCallback(MatchKind.NAME_INVOCATION_UNRESOLVED, scope, listener));
index.getRelationships(
new NameElementImpl(name),
IndexConstants.NAME_IS_READ_BY_UNRESOLVED,
newCallback(MatchKind.NAME_READ_UNRESOLVED, scope, listener));
index.getRelationships(
new NameElementImpl(name),
IndexConstants.NAME_IS_READ_WRITTEN_BY_UNRESOLVED,
newCallback(MatchKind.NAME_READ_WRITE_UNRESOLVED, scope, listener));
index.getRelationships(
new NameElementImpl(name),
IndexConstants.NAME_IS_WRITTEN_BY_UNRESOLVED,
newCallback(MatchKind.NAME_WRITE_UNRESOLVED, scope, listener));
}