abstract class AbstractJGeneric extends BasicJAnnotatable implements JGenericDef
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<ImplJTypeParamDef> |
typeParamDefs |
Constructor and Description |
---|
AbstractJGeneric() |
Modifier and Type | Method and Description |
---|---|
private ImplJTypeParamDef |
add(ImplJTypeParamDef item) |
JTypeParamDef |
typeParam(java.lang.String name)
Define a type parameter.
|
JTypeParamDef[] |
typeParams()
Get all the type parameters defined at the time of invocation.
|
(package private) JType[] |
typeParamsToArgs() |
(package private) void |
writeTypeParams(SourceFileWriter sourceFileWriter) |
annotate, annotate, annotate, writeAnnotations
deprecated, docComment, writeDocComments
blockComment, lineComment, writeComments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
blockComment, lineComment
private java.util.ArrayList<ImplJTypeParamDef> typeParamDefs
private ImplJTypeParamDef add(ImplJTypeParamDef item)
public JTypeParamDef typeParam(java.lang.String name)
JGenericDef
typeParam
in interface JGenericDef
name
- the type parameter namepublic JTypeParamDef[] typeParams()
JGenericDef
typeParams
in interface JGenericDef
JType[] typeParamsToArgs()
void writeTypeParams(SourceFileWriter sourceFileWriter) throws java.io.IOException
java.io.IOException