public static class FeatureFilter.ByAnnotationType extends java.lang.Object implements OptimizableFilter
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.StrandFilter
all, leaf, none, top_level
Modifier | Constructor and Description |
---|---|
protected |
ByAnnotationType() |
|
ByAnnotationType(AnnotationType type) |
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) |
AnnotationType |
getType() |
int |
hashCode() |
boolean |
isDisjoint(FeatureFilter filter)
Returns true if this filter is disjoint from filt - that is, there is no
Feature that is accepted by both filters.
|
boolean |
isProperSubset(FeatureFilter filter)
Returns true if this filter is a proper subset of sup - that is, for every
feature that matches this, it also matches sup.
|
protected void |
setType(AnnotationType type) |
java.lang.String |
toString() |
protected ByAnnotationType()
public ByAnnotationType(AnnotationType type)
public AnnotationType getType()
protected void setType(AnnotationType type)
public boolean accept(Feature f)
FeatureFilter
accept
in interface FeatureFilter
f
- the Feature to evaluatepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isDisjoint(FeatureFilter filter)
OptimizableFilter
isDisjoint
in interface OptimizableFilter
public boolean isProperSubset(FeatureFilter filter)
OptimizableFilter
isProperSubset
in interface OptimizableFilter
filter
- the potential super setpublic java.lang.String toString()
toString
in class java.lang.Object