public interface InterfaceCapableSource<T extends JavaSource<T>> extends InterfaceCapable
JavaSource that may implement one or more interfaces.| Modifier and Type | Method and Description |
|---|---|
T |
addInterface(Class<?> type)
Implements the specified
Class interface |
T |
addInterface(JavaInterface<?> type)
Implements the specified
JavaInterface |
T |
addInterface(String type)
Implements the specified interface name
|
T |
implementInterface(Class<?> type)
Implements the specified
Class interface and import their abstract methods, if any. |
T |
implementInterface(JavaInterface<?> type)
Implements the specified
JavaInterface and import their abstract methods, if any. |
T |
removeInterface(Class<?> type)
Removes the specified interface
|
T |
removeInterface(JavaInterface<?> type)
Removes the specified interface
|
T |
removeInterface(String type)
Removes the specified interface FQN
|
getInterfaces, hasInterface, hasInterface, hasInterfaceT addInterface(String type)
type - the interface FQNT addInterface(Class<?> type)
Class interfacetype - the interface Class referenceT implementInterface(Class<?> type)
Class interface and import their abstract methods, if any.type - the interface Class referenceMethods.implementAbstractMethods(Class, MethodHolderSource)T implementInterface(JavaInterface<?> type)
JavaInterface and import their abstract methods, if any.type - the interface JavaInterface referenceMethods#implementAbstractMethods(JavaInterface, MethodHolderSource)T addInterface(JavaInterface<?> type)
JavaInterfacetype - the interfaceT removeInterface(String type)
type - the interface FQNT removeInterface(Class<?> type)
type - the interface ClassT removeInterface(JavaInterface<?> type)
type - the interface JavaInterfaceCopyright © 2019 JBoss by Red Hat. All rights reserved.