Interface ExtendableSource<O extends JavaType<O>>
- All Superinterfaces:
Extendable<O>
- All Known Subinterfaces:
JavaClassSource
Represents a
JavaSource that can extend other types (Java inheritance and interfaces).- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionextendSuperType(Class<?> type) Set this type's super class and import their abstract methods, if any.extendSuperType(JavaClass<?> type) Set this type's super class and import their abstract methods, if any.setSuperType(Class<?> type) Set this type's super class.setSuperType(String type) Set this type's super class.setSuperType(JavaType<?> type) Set this type's super class.Methods inherited from interface org.jboss.forge.roaster.model.Extendable
getSuperType
-
Method Details
-
setSuperType
Set this type's super class. If the provided type isnullthe previous super class is removed.- See Also:
-
setSuperType
Set this type's super class. If the provided type isnullthe previous super class is removed.- See Also:
-
extendSuperType
Set this type's super class and import their abstract methods, if any. -
extendSuperType
Set this type's super class and import their abstract methods, if any. -
setSuperType
Set this type's super class. If the provided type isnullthe previous super class is removed.For example:
In the case of "public class Foo extends Bar {}" -Foois the base type, andBaris the super class.)Attempt to add an import statement to this object's
ExtendableSourceif required. (Note that the given className must be fully-qualified in order to properly import required classes)
-