Class QuickFixHelper.ImportSupplier

java.lang.Object
org.sonar.java.checks.helpers.QuickFixHelper.ImportSupplier
Enclosing class:
QuickFixHelper

public static class QuickFixHelper.ImportSupplier extends Object
  • Method Details

    • newImportEdit

      public Optional<JavaTextEdit> newImportEdit(String requiredType)
      Only entry point to the supplier. Check if importing the required type is needed.
      Parameters:
      requiredType - The fully qualified name of a the type required to compile the associated quick-fix
      Returns:
      An empty Optional if there is no need of an extra import. Otherwise, the edit inserting a new import at the best possible place corresponding to the required type.