public enum ItemSorters extends Enum<ItemSorters>
Modifier and Type | Method and Description |
---|---|
static CompletionItemSorter |
getSorterByClass(Class context)
Get the item sorter by the class.
|
static ItemSorters |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemSorters[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemSorters ASSIGNMENT_STMT_ITEM_SORTER
public static final ItemSorters FUNCTION_BODY_ITEM_SORTER
public static final ItemSorters DEFAULT_ITEM_SORTER
public static final ItemSorters ENDPOINT_DEF_ITEM_SORTER
public static final ItemSorters RESOURCE_BODY_ITEM_SORTER
public static final ItemSorters SERVICE_BODY_ITEM_SORTER
public static final ItemSorters STATEMENT_CONTEXT_ITEM_SORTER
public static final ItemSorters VAR_DEF_CONTEXT_ITEM_SORTER
public static final ItemSorters GLOBAL_VAR_DEF_CONTEXT_ITEM_SORTER
public static final ItemSorters CONDITIONAL_STMT_CONTEXT_ITEM_SORTER
public static final ItemSorters MATCH_STMT_CONTEXT_ITEM_SORTER
public static final ItemSorters ACTION_AND_FIELD_ITEM_SORTER
public static ItemSorters[] values()
for (ItemSorters c : ItemSorters.values()) System.out.println(c);
public static ItemSorters valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static CompletionItemSorter getSorterByClass(Class context)
context
- - context class to extract the relevant item sorterCompletionItemSorter
- Item sorter for the given contextCopyright © 2018 WSO2. All rights reserved.