public static enum HighlightUtil.Feature extends java.lang.Enum<HighlightUtil.Feature>
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailable(PsiElement element) |
static HighlightUtil.Feature |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HighlightUtil.Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HighlightUtil.Feature GENERICS
public static final HighlightUtil.Feature ANNOTATIONS
public static final HighlightUtil.Feature STATIC_IMPORTS
public static final HighlightUtil.Feature FOR_EACH
public static final HighlightUtil.Feature VARARGS
public static final HighlightUtil.Feature HEX_FP_LITERALS
public static final HighlightUtil.Feature DIAMOND_TYPES
public static final HighlightUtil.Feature MULTI_CATCH
public static final HighlightUtil.Feature TRY_WITH_RESOURCES
public static final HighlightUtil.Feature BIN_LITERALS
public static final HighlightUtil.Feature UNDERSCORES
public static final HighlightUtil.Feature EXTENSION_METHODS
public static final HighlightUtil.Feature METHOD_REFERENCES
public static final HighlightUtil.Feature LAMBDA_EXPRESSIONS
public static final HighlightUtil.Feature TYPE_ANNOTATIONS
public static final HighlightUtil.Feature RECEIVERS
public static final HighlightUtil.Feature INTERSECTION_CASTS
public static final HighlightUtil.Feature STATIC_INTERFACE_CALLS
public static final HighlightUtil.Feature REFS_AS_RESOURCE
public static final HighlightUtil.Feature MODULES
public static final HighlightUtil.Feature LVTI
public static final HighlightUtil.Feature ENHANCED_SWITCH
public static final HighlightUtil.Feature SWITCH_EXPRESSION
public static final HighlightUtil.Feature TEXT_BLOCKS
public static final HighlightUtil.Feature RECORDS
public static final HighlightUtil.Feature PATTERNS
public static final HighlightUtil.Feature TEXT_BLOCK_ESCAPES
public static HighlightUtil.Feature[] values()
for (HighlightUtil.Feature c : HighlightUtil.Feature.values()) System.out.println(c);
public static HighlightUtil.Feature valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isAvailable(PsiElement element)
element
- a valid PsiElement to check (it's better to supply PsiFile if already known; any element is accepted for convenience)