Interface NodeWithType<N extends Node,​T extends Type>

    • Method Detail

      • getType

        T getType()
        Gets the type
        Returns:
        the type
      • setType

        N setType​(T type)
        Sets the type
        Parameters:
        type - the type
        Returns:
        this
      • tryAddImportToParentCompilationUnit

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

        default N setType​(Class<?> typeClass)
        Sets this type to this class and try to import it to the CompilationUnit if needed
        Parameters:
        typeClass - the type
        Returns:
        this
      • setType

        default N setType​(String typeString)
      • getTypeAsString

        default String getTypeAsString()