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
JTypeVar s. |
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 JDeparser |
owner() |
JTypeVar[] |
typeParams()
Iterates all the type parameters of this class/interface.
|
protected abstract JDeparser owner()
public void declare(JFormatter f)
declare
in interface JDeclaration
public JTypeVar generify(java.lang.String name)
JGenerifiable
generify
in interface JGenerifiable
public JTypeVar generify(java.lang.String name, java.lang.Class<?> bound)
JGenerifiable
generify
in interface JGenerifiable
public JTypeVar generify(java.lang.String name, JClass bound)
JGenerifiable
generify
in interface JGenerifiable
public JTypeVar[] typeParams()
JGenerifiable
typeParams
in interface JGenerifiable