public abstract class IndexFilter extends Object
| Modifier and Type | Field and Description |
|---|---|
static IndexFilter |
ALL |
static IndexFilter |
ALL_DECLARED |
static IndexFilter |
ALL_DECLARED_OR_IMPLICIT |
static IndexFilter |
C_DECLARED_OR_IMPLICIT |
static IndexFilter |
CPP_DECLARED_OR_IMPLICIT |
static IndexFilter |
CPP_DECLARED_OR_IMPLICIT_NO_INSTANCE |
| Constructor and Description |
|---|
IndexFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptBinding(IBinding binding)
Determines whether or not a binding is valid.
|
boolean |
acceptLinkage(ILinkage linkage)
Returns whether or not to include objects of the given linkage in the query.
|
static IndexFilter |
getDeclaredBindingFilter(int linkageID,
boolean acceptImplicit)
Get an IndexFilter that filters out bindings without declarations and those from linkages
other than that specified.
|
static IndexFilter |
getDeclaredBindingFilter(int linkageID,
boolean acceptImplicit,
boolean allowInstances)
Get an IndexFilter that filters out bindings without declarations and those
from linkages other than that specified.
|
static IndexFilter |
getFilter(int linkageID)
Get an IndexFilter that filters out bindings from linkages other than that specified.
|
public static final IndexFilter ALL
public static final IndexFilter ALL_DECLARED
public static final IndexFilter ALL_DECLARED_OR_IMPLICIT
public static final IndexFilter CPP_DECLARED_OR_IMPLICIT
public static final IndexFilter CPP_DECLARED_OR_IMPLICIT_NO_INSTANCE
public static final IndexFilter C_DECLARED_OR_IMPLICIT
public static IndexFilter getFilter(int linkageID)
linkageID - the id of the linkage whose bindings should be retainedpublic static IndexFilter getDeclaredBindingFilter(int linkageID, boolean acceptImplicit)
linkageID - the id of the linkage whose bindings should be retained, or -1
to accept all linkages.public static IndexFilter getDeclaredBindingFilter(int linkageID, boolean acceptImplicit, boolean allowInstances)
linkageID - the id of the linkage whose bindings should be retained, or -1
to accept all linkages.public boolean acceptLinkage(ILinkage linkage)
linkage - a linkage to be testedIIndex.findBindings(java.util.regex.Pattern, boolean, IndexFilter, org.eclipse.core.runtime.IProgressMonitor)public boolean acceptBinding(IBinding binding) throws org.eclipse.core.runtime.CoreException
binding - the binding being checked for validityorg.eclipse.core.runtime.CoreExceptionCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.