class ImplJTypeParamDef extends java.lang.Object implements JTypeParamDef
| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList<JType> |
_extends |
private java.util.ArrayList<JType> |
_super |
private java.lang.String |
name |
| Constructor and Description |
|---|
ImplJTypeParamDef(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
JTypeParamDef |
_extends(java.lang.Class<?> type)
Add an
extends bound to this parameter. |
JTypeParamDef |
_extends(JType type)
Add an
extends bound to this parameter. |
JTypeParamDef |
_extends(java.lang.String type)
Add an
extends bound to this parameter. |
JTypeParamDef |
_super(java.lang.Class<?> type)
Add a
super bound to this parameter. |
JTypeParamDef |
_super(JType type)
Add a
super bound to this parameter. |
JTypeParamDef |
_super(java.lang.String type)
Add a
super bound to this parameter. |
(package private) java.lang.Iterable<JType> |
getExtends() |
(package private) java.lang.String |
getName() |
(package private) java.lang.Iterable<JType> |
getSuper() |
(package private) void |
write(SourceFileWriter sourceFileWriter) |
private void |
writeList(SourceFileWriter sourceFileWriter,
java.util.ArrayList<JType> list,
Tokens.$KW keyword) |
private final java.lang.String name
private java.util.ArrayList<JType> _extends
private java.util.ArrayList<JType> _super
public JTypeParamDef _extends(java.lang.String type)
JTypeParamDefextends bound to this parameter._extends in interface JTypeParamDeftype - the bound typepublic JTypeParamDef _extends(JType type)
JTypeParamDefextends bound to this parameter._extends in interface JTypeParamDeftype - the bound typepublic JTypeParamDef _extends(java.lang.Class<?> type)
JTypeParamDefextends bound to this parameter._extends in interface JTypeParamDeftype - the bound typepublic JTypeParamDef _super(java.lang.String type)
JTypeParamDefsuper bound to this parameter._super in interface JTypeParamDeftype - the bound typepublic JTypeParamDef _super(JType type)
JTypeParamDefsuper bound to this parameter._super in interface JTypeParamDeftype - the bound typepublic JTypeParamDef _super(java.lang.Class<?> type)
JTypeParamDefsuper bound to this parameter._super in interface JTypeParamDeftype - the bound typejava.lang.String getName()
java.lang.Iterable<JType> getExtends()
java.lang.Iterable<JType> getSuper()
private void writeList(SourceFileWriter sourceFileWriter, java.util.ArrayList<JType> list, Tokens.$KW keyword) throws java.io.IOException
java.io.IOExceptionvoid write(SourceFileWriter sourceFileWriter) throws java.io.IOException
java.io.IOException