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​(java.lang.Class<?> clazz)
      • setType

        default N setType​(java.lang.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​(java.lang.String typeString)
      • getTypeAsString

        default java.lang.String getTypeAsString()