Package org.jboss.jdeparser
Class AbstractJGeneric
- java.lang.Object
-
- org.jboss.jdeparser.BasicJCommentable
-
- org.jboss.jdeparser.AbstractJDocCommentable
-
- org.jboss.jdeparser.BasicJAnnotatable
-
- org.jboss.jdeparser.AbstractJGeneric
-
- All Implemented Interfaces:
JAnnotatable
,JCommentable
,JDocCommentable
,JGenericDef
- Direct Known Subclasses:
AbstractJClassDef
,AbstractJMethodDef
abstract class AbstractJGeneric extends BasicJAnnotatable implements JGenericDef
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<ImplJTypeParamDef>
typeParamDefs
-
Constructor Summary
Constructors Constructor Description AbstractJGeneric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.jboss.jdeparser.BasicJAnnotatable
annotate, annotate, annotate, writeAnnotations
-
Methods inherited from class org.jboss.jdeparser.AbstractJDocCommentable
deprecated, docComment, writeDocComments
-
Methods inherited from class org.jboss.jdeparser.BasicJCommentable
blockComment, lineComment, writeComments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
-
-
-
Field Detail
-
typeParamDefs
private java.util.ArrayList<ImplJTypeParamDef> typeParamDefs
-
-
Method Detail
-
add
private ImplJTypeParamDef add(ImplJTypeParamDef item)
-
typeParam
public JTypeParamDef typeParam(java.lang.String name)
Description copied from interface:JGenericDef
Define a type parameter.- Specified by:
typeParam
in interfaceJGenericDef
- Parameters:
name
- the type parameter name- Returns:
- the type parameter definition
-
typeParams
public JTypeParamDef[] typeParams()
Description copied from interface:JGenericDef
Get all the type parameters defined at the time of invocation.- Specified by:
typeParams
in interfaceJGenericDef
- Returns:
- the type parameters
-
typeParamsToArgs
JType[] typeParamsToArgs()
-
writeTypeParams
void writeTypeParams(SourceFileWriter sourceFileWriter) throws java.io.IOException
- Throws:
java.io.IOException
-
-