Interface ExtendableSource<O extends JavaType<O>>
-
- All Superinterfaces:
Extendable<O>
- All Known Subinterfaces:
JavaClassSource
public interface ExtendableSource<O extends JavaType<O>> extends Extendable<O>
Represents aJavaSourcethat can extend other types (Java inheritance and interfaces).- Author:
- Lincoln Baxter, III
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OextendSuperType(Class<?> type)Set this type's super class and import their abstract methods, if any.OextendSuperType(JavaClass<?> type)Set this type's super class and import their abstract methods, if any.OsetSuperType(Class<?> type)Set this type's super class.OsetSuperType(String type)Set this type's super class.OsetSuperType(JavaType<?> type)Set this type's super class.-
Methods inherited from interface org.jboss.forge.roaster.model.Extendable
getSuperType
-
-
-
-
Method Detail
-
setSuperType
O setSuperType(JavaType<?> type)
Set this type's super class. If the provided type isnullthe previous super class is removed.- See Also:
setSuperType(String)
-
setSuperType
O setSuperType(Class<?> type)
Set this type's super class. If the provided type isnullthe previous super class is removed.- See Also:
setSuperType(String)
-
extendSuperType
O extendSuperType(Class<?> type)
Set this type's super class and import their abstract methods, if any.
-
extendSuperType
O extendSuperType(JavaClass<?> type)
Set this type's super class and import their abstract methods, if any.
-
setSuperType
O setSuperType(String type)
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)
-
-