public interface Extendable<O extends JavaSource<O>>
JavaSource that can extend other types. (Java inheritance and interfaces.)| Modifier and Type | Method and Description |
|---|---|
String |
getSuperType()
Get this type's super class.
|
O |
setSuperType(Class<?> type)
Set this type's super class.
|
O |
setSuperType(O type)
Set this type's super class.
|
O |
setSuperType(String type)
Set this type's super class.
|
String getSuperType()
setSuperType(String)O setSuperType(O type)
setSuperType(String)O setSuperType(Class<?> type)
setSuperType(String)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 © 2014 JBoss by Red Hat. All Rights Reserved.