Enum Class CodeActionKind
- All Implemented Interfaces:
Serializable,Comparable<CodeActionKind>,Constable
A set of predefined code action kinds.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEmpty kind.Base kind for quickfix actions: 'quickfix'.Base kind for refactoring actions: 'refactor'.Base kind for refactoring extraction actions: 'refactor.extract'.Base kind for refactoring inline actions: 'refactor.inline'.Base kind for refactoring rewrite actions: 'refactor.rewrite'.Base kind for source actions: `source`.Base kind for auto-fix source actions: `source.fixAll`.Base kind for an organize imports source action: `source.organizeImports`. -
Method Summary
Modifier and TypeMethodDescriptionstatic CodeActionKindstatic CodeActionKindReturns the enum constant of this class with the specified name.static CodeActionKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Empty
Empty kind. -
QuickFix
Base kind for quickfix actions: 'quickfix'. -
Refactor
Base kind for refactoring actions: 'refactor'. -
RefactorExtract
Base kind for refactoring extraction actions: 'refactor.extract'. Example extract actions: - Extract method - Extract function - Extract variable - Extract interface from class - ... -
RefactorInline
Base kind for refactoring inline actions: 'refactor.inline'. Example inline actions: - Inline function - Inline variable - Inline constant - ... -
RefactorRewrite
Base kind for refactoring rewrite actions: 'refactor.rewrite'. Example rewrite actions: - Convert JavaScript function to class - Add or remove parameter - Encapsulate field - Make method static - Move method to base class - ... -
Source
Base kind for source actions: `source`. Source code actions apply to the entire file. -
SourceOrganizeImports
Base kind for an organize imports source action: `source.organizeImports`. -
SourceFixAll
Base kind for auto-fix source actions: `source.fixAll`. Fix all actions automatically fix errors that have a clear fix that do not require user input. They should not suppress errors or perform unsafe fixes such as generating new types or classes.- Since:
- 3.15.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getStringValue
-
get
-