public interface UsageGroupingRule
DumbAware
are executed.Modifier and Type | Field and Description |
---|---|
static UsageGroupingRule[] |
EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
default java.util.List<UsageGroup> |
getParentGroupsFor(Usage usage,
UsageTarget [] targets)
Return list of nested parent groups for a usage.
|
default int |
getRank()
Override this method to change order in which rules are applied.
|
default UsageGroup |
groupUsage(Usage usage)
Deprecated.
extend
SingleParentUsageGroupingRule and override getParentGroupFor instead |
static final UsageGroupingRule[] EMPTY_ARRAY
default java.util.List<UsageGroup> getParentGroupsFor(Usage usage, UsageTarget [] targets)
If the rule returns at most one parent group extend SingleParentUsageGroupingRule
and override
getParentGroupFor
instead.
default int getRank()
@Deprecated default UsageGroup groupUsage(Usage usage)
SingleParentUsageGroupingRule
and override getParentGroupFor
instead