public interface ExtendableSource<O extends JavaType<O>> extends Extendable<O>
JavaSource that can extend other types (Java inheritance and interfaces).| Modifier and Type | Method and Description |
|---|---|
O |
extendSuperType(Class<?> type)
Set this type's super class and import their abstract methods, if any.
|
O |
extendSuperType(JavaClass<?> type)
Set this type's super class and import their abstract methods, if any.
|
O |
setSuperType(Class<?> type)
Set this type's super class.
|
O |
setSuperType(JavaType<?> type)
Set this type's super class.
|
O |
setSuperType(String type)
Set this type's super class.
|
getSuperTypeO setSuperType(JavaType<?> type)
setSuperType(String)O setSuperType(Class<?> type)
setSuperType(String)O extendSuperType(Class<?> type)
O extendSuperType(JavaClass<?> type)
O setSuperType(String type)
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 O if required. (Note that the given className must be
fully-qualified in order to properly import required classes)
Copyright © 2015 JBoss by Red Hat. All rights reserved.