Interface HasImports<T extends HasImports<T>>

    • Method Detail

      • add

        default T add​(Import dep)
        Adds the specified Import to this model.
        Parameters:
        dep - the new child
        Returns:
        a reference to this
      • imports

        default T imports​(Import dep)
        Adds the specified Import to this model. This is a synonym for add(Import).
        Parameters:
        dep - the dependency to add
        Returns:
        a reference to this
        Since:
        2.5
      • imports

        default T imports​(Type type)
        Creates an Import using the default implementation and adds it to this model.
        Parameters:
        type - the dependency to add
        Returns:
        a reference to this
        Since:
        2.5
      • imports

        default T imports​(Type type,
                          String method)
        Creates a static Import using the default implementation and adds it to this model.
        Parameters:
        type - the dependency to add
        method - name of the static member method
        Returns:
        a reference to this
        Since:
        2.5
      • getImports

        List<Import> getImports()
        Returns a list of all imports in this model.

        The list returned must be mutable for changes!

        Returns:
        the imports