Interface InterfaceCapableSource<T extends JavaSource<T>>

    • Method Detail

      • addInterface

        T addInterface​(String type)
        Implements the specified interface name
        Parameters:
        type - the interface FQN
        Returns:
        this object
      • addInterface

        T addInterface​(Class<?> type)
        Implements the specified Class interface
        Parameters:
        type - the interface Class reference
        Returns:
        this object
      • implementInterface

        T implementInterface​(JavaInterface<?> type)
        Implements the specified JavaInterface and import their abstract methods, if any.
        Parameters:
        type - the interface JavaInterface reference
        Returns:
        this object
        See Also:
        Methods#implementAbstractMethods(JavaInterface, MethodHolderSource)
      • addInterface

        T addInterface​(JavaInterface<?> type)
        Implements the specified JavaInterface
        Parameters:
        type - the interface
        Returns:
        this object
      • removeInterface

        T removeInterface​(String type)
        Removes the specified interface FQN
        Parameters:
        type - the interface FQN
        Returns:
        this object
      • removeInterface

        T removeInterface​(Class<?> type)
        Removes the specified interface
        Parameters:
        type - the interface Class
        Returns:
        this object
      • removeInterface

        T removeInterface​(JavaInterface<?> type)
        Removes the specified interface
        Parameters:
        type - the interface JavaInterface
        Returns:
        this object