Interface NodeWithImplements<N extends Node>

    • Method Detail

      • tryAddImportToParentCompilationUnit

        void tryAddImportToParentCompilationUnit​(Class<?> clazz)
      • addImplements

        default N addImplements​(String name)
        Deprecated.
        use addImplementedType instead
      • addImplements

        default N addImplements​(Class<?> clazz)
        Deprecated.
        use addImplementedType instead
      • addImplementedType

        default N addImplementedType​(String name)
        Add an implements to this
        Parameters:
        name - the name of the type to extends from
        Returns:
        this
      • addImplementedType

        default N addImplementedType​(Class<?> clazz)
        Add an implements to this and automatically add the import
        Parameters:
        clazz - the type to implements from
        Returns:
        this