public static class FeatureFilter.ByAncestor extends java.lang.Object implements OptimizableFilter
FeatureFilter to all
ancestor features. Returns true if at least one
of them matches the filter. Always false if the
parent is not a feature (e.g. top-level features, where the
parent is a sequence).FeatureFilter.And, FeatureFilter.AnnotationContains, FeatureFilter.ByAncestor, FeatureFilter.ByAnnotation, FeatureFilter.ByAnnotationType, FeatureFilter.ByChild, FeatureFilter.ByClass, FeatureFilter.ByComponentName, FeatureFilter.ByDescendant, FeatureFilter.ByFeature, FeatureFilter.ByPairwiseScore, FeatureFilter.ByParent, FeatureFilter.BySequenceName, FeatureFilter.BySource, FeatureFilter.ByType, FeatureFilter.ContainedByLocation, FeatureFilter.FrameFilter, FeatureFilter.HasAnnotation, FeatureFilter.Not, FeatureFilter.OnlyChildren, FeatureFilter.OnlyDescendants, FeatureFilter.Or, FeatureFilter.OverlapsLocation, FeatureFilter.ShadowContainedByLocation, FeatureFilter.ShadowOverlapsLocation, FeatureFilter.StrandFilterall, leaf, none, top_level| Constructor and Description |
|---|
ByAncestor(FeatureFilter ff) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Feature f)
This method determines whether a feature is to be accepted.
|
boolean |
equals(java.lang.Object o) |
FeatureFilter |
getFilter() |
int |
hashCode() |
boolean |
isDisjoint(FeatureFilter ff)
Returns true if this filter is disjoint from filt - that is, there is no
Feature that is accepted by both filters.
|
boolean |
isProperSubset(FeatureFilter ff)
Returns true if this filter is a proper subset of sup - that is, for every
feature that matches this, it also matches sup.
|
java.lang.String |
toString() |
public ByAncestor(FeatureFilter ff)
public FeatureFilter getFilter()
public boolean accept(Feature f)
FeatureFilteraccept in interface FeatureFilterf - the Feature to evaluatepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean isProperSubset(FeatureFilter ff)
OptimizableFilterisProperSubset in interface OptimizableFilterff - the potential super setpublic boolean isDisjoint(FeatureFilter ff)
OptimizableFilterisDisjoint in interface OptimizableFilterpublic java.lang.String toString()
toString in class java.lang.Object