Class ImportRewrite.ImportRewriteContext

java.lang.Object
org.eclipse.jdt.core.dom.rewrite.ImportRewrite.ImportRewriteContext
Enclosing class:
ImportRewrite

public abstract static class ImportRewrite.ImportRewriteContext extends Object
A ImportRewrite.ImportRewriteContext can optionally be used in e.g. ImportRewrite.addImport(String, ImportRewrite.ImportRewriteContext) to give more information about the types visible in the scope. These types can be for example inherited inner types where it is unnecessary to add import statements for.

This class can be implemented by clients.

  • Field Details

    • RES_NAME_FOUND

      public static final int RES_NAME_FOUND
      Result constant signaling that the given element is know in the context.
      See Also:
    • RES_NAME_UNKNOWN

      public static final int RES_NAME_UNKNOWN
      Result constant signaling that the given element is not know in the context.
      See Also:
    • RES_NAME_CONFLICT

      public static final int RES_NAME_CONFLICT
      Result constant signaling that the given element is conflicting with an other element in the context.
      See Also:
    • RES_NAME_UNKNOWN_NEEDS_EXPLICIT_IMPORT

      public static final int RES_NAME_UNKNOWN_NEEDS_EXPLICIT_IMPORT
      Result constant signaling that the given element must be imported explicitly (and must not be folded into an on-demand import or filtered as an implicit import).
      Since:
      3.11
      See Also:
    • KIND_TYPE

      public static final int KIND_TYPE
      Kind constant specifying that the element is a type import.
      See Also:
    • KIND_STATIC_FIELD

      public static final int KIND_STATIC_FIELD
      Kind constant specifying that the element is a static field import.
      See Also:
    • KIND_STATIC_METHOD

      public static final int KIND_STATIC_METHOD
      Kind constant specifying that the element is a static method import.
      See Also:
  • Constructor Details

    • ImportRewriteContext

      public ImportRewriteContext()
  • Method Details