abstract class JGenerifiableImpl extends java.lang.Object implements JGenerifiable, JDeclaration
JGenerifiable.| Modifier and Type | Field and Description |
|---|---|
private java.util.List<JTypeVar> |
typeVariables
Lazily created list of
JTypeVars. |
| Constructor and Description |
|---|
JGenerifiableImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
declare(JFormatter f) |
JTypeVar |
generify(java.lang.String name)
Adds a new type variable to this declaration.
|
JTypeVar |
generify(java.lang.String name,
java.lang.Class<?> bound)
Adds a new type variable to this declaration with a bound.
|
JTypeVar |
generify(java.lang.String name,
JClass bound)
Adds a new type variable to this declaration with a bound.
|
protected abstract JCodeModel |
owner() |
JTypeVar[] |
typeParams()
Iterates all the type parameters of this class/interface.
|
protected abstract JCodeModel owner()
public void declare(JFormatter f)
declare in interface JDeclarationpublic JTypeVar generify(java.lang.String name)
JGenerifiablegenerify in interface JGenerifiablepublic JTypeVar generify(java.lang.String name, java.lang.Class<?> bound)
JGenerifiablegenerify in interface JGenerifiablepublic JTypeVar generify(java.lang.String name, JClass bound)
JGenerifiablegenerify in interface JGenerifiablepublic JTypeVar[] typeParams()
JGenerifiabletypeParams in interface JGenerifiable