public interface GenericCapableSource<O extends JavaSource<O>,T> extends GenericCapable<O>
| Modifier and Type | Method and Description |
|---|---|
TypeVariableSource<O> |
addTypeVariable()
Adds a type variable.
|
TypeVariableSource<O> |
addTypeVariable(String name)
Shortcut to
NamedSource.setName(String) |
TypeVariableSource<O> |
getTypeVariable(String name)
Returns the named
TypeVariable. |
List<TypeVariableSource<O>> |
getTypeVariables()
Returns all the generic types associated with this object
|
T |
removeTypeVariable(String name)
Removes a type variable.
|
T |
removeTypeVariable(TypeVariable<?> typeVariable)
Removes a type variable.
|
List<TypeVariableSource<O>> getTypeVariables()
GenericCapablegetTypeVariables in interface GenericCapable<O extends JavaSource<O>>TypeVariableSource<O> getTypeVariable(String name)
GenericCapableTypeVariable.getTypeVariable in interface GenericCapable<O extends JavaSource<O>>nullTypeVariableSource<O> addTypeVariable()
TypeVariableSourceTypeVariableSource<O> addTypeVariable(String name)
NamedSource.setName(String)name - TypeVariableSourceT removeTypeVariable(String name)
name - should never be nullT removeTypeVariable(TypeVariable<?> typeVariable)
typeVariable - should never be nullCopyright © 2016 JBoss by Red Hat. All rights reserved.