Interface ExtendableSource<O extends JavaType<O>>

    • Method Detail

      • setSuperType

        O setSuperType​(JavaType<?> type)
        Set this type's super class. If the provided type is null the previous super class is removed.
        See Also:
        setSuperType(String)
      • setSuperType

        O setSuperType​(java.lang.Class<?> type)
        Set this type's super class. If the provided type is null the previous super class is removed.
        See Also:
        setSuperType(String)
      • setSuperType

        O setSuperType​(java.lang.String type)
        Set this type's super class. If the provided type is null the previous super class is removed.

        For example:
        In the case of " public class Foo extends Bar {}" - Foo is the base type, and Bar is the super class.)

        Attempt to add an import statement to this object's ExtendableSource if required. (Note that the given className must be fully-qualified in order to properly import required classes)