Interface NodeWithExtends<N extends Node>

    • Method Detail

      • tryAddImportToParentCompilationUnit

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

        default N addExtends​(Class<?> clazz)
        Deprecated.
        use addExtendedType
      • addExtends

        default N addExtends​(String name)
        Deprecated.
        use addExtendedType
      • addExtendedType

        default N addExtendedType​(Class<?> clazz)
        Add an "extends" to this and automatically add the import
        Parameters:
        clazz - the class to extand from
        Returns:
        this
      • addExtendedType

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