Interface ITypeImporter

  • All Known Implementing Classes:
    TypeImporter

    public interface ITypeImporter
    Allows to add static imports and static extension imports locally.
    Since:
    2.6
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  ITypeImporter.Client
      This is facade to add imports on the same level in a type computation state.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void importStatic​(org.eclipse.xtext.common.types.JvmDeclaredType type)
      Imports all static members of the given type.
      void importStatic​(org.eclipse.xtext.common.types.JvmDeclaredType type, java.lang.String memberName)
      Imports the static members of the given type with the given name.
      void importStaticExtension​(org.eclipse.xtext.common.types.JvmDeclaredType type, boolean strict)
      Imports all static members of the given type as extensions.
      void importStaticExtension​(org.eclipse.xtext.common.types.JvmDeclaredType type, java.lang.String memberName, boolean strict)
      Imports the static members of the given type with the given name as extensions.
    • Method Detail

      • importStatic

        void importStatic​(org.eclipse.xtext.common.types.JvmDeclaredType type)
        Imports all static members of the given type.
      • importStatic

        void importStatic​(org.eclipse.xtext.common.types.JvmDeclaredType type,
                          java.lang.String memberName)
        Imports the static members of the given type with the given name.
      • importStaticExtension

        void importStaticExtension​(org.eclipse.xtext.common.types.JvmDeclaredType type,
                                   boolean strict)
        Imports all static members of the given type as extensions. If the strict flag is set to false, the members will also be available as static imports.
      • importStaticExtension

        void importStaticExtension​(org.eclipse.xtext.common.types.JvmDeclaredType type,
                                   java.lang.String memberName,
                                   boolean strict)
        Imports the static members of the given type with the given name as extensions. If the strict flag is set to false, the imported members will also be available as static imports.