Enum Class CodeActionKind

java.lang.Object
java.lang.Enum<CodeActionKind>
org.graalvm.tools.lsp.server.types.CodeActionKind
All Implemented Interfaces:
Serializable, Comparable<CodeActionKind>, Constable

public enum CodeActionKind extends Enum<CodeActionKind>
A set of predefined code action kinds.
  • Enum Constant Details

    • Empty

      public static final CodeActionKind Empty
      Empty kind.
    • QuickFix

      public static final CodeActionKind QuickFix
      Base kind for quickfix actions: 'quickfix'.
    • Refactor

      public static final CodeActionKind Refactor
      Base kind for refactoring actions: 'refactor'.
    • RefactorExtract

      public static final CodeActionKind RefactorExtract
      Base kind for refactoring extraction actions: 'refactor.extract'. Example extract actions: - Extract method - Extract function - Extract variable - Extract interface from class - ...
    • RefactorInline

      public static final CodeActionKind RefactorInline
      Base kind for refactoring inline actions: 'refactor.inline'. Example inline actions: - Inline function - Inline variable - Inline constant - ...
    • RefactorRewrite

      public static final CodeActionKind 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

      public static final CodeActionKind Source
      Base kind for source actions: `source`. Source code actions apply to the entire file.
    • SourceOrganizeImports

      public static final CodeActionKind SourceOrganizeImports
      Base kind for an organize imports source action: `source.organizeImports`.
    • SourceFixAll

      public static final CodeActionKind 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

      public static CodeActionKind[] 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

      public static CodeActionKind valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getStringValue

      public String getStringValue()
    • get

      public static CodeActionKind get(String stringValue)