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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ImplJTypeParamDefadd(ImplJTypeParamDef item) Define a type parameter.Get all the type parameters defined at the time of invocation.(package private) JType[](package private) voidwriteTypeParams(SourceFileWriter sourceFileWriter) Methods inherited from class org.jboss.jdeparser.BasicJAnnotatable
annotate, annotate, annotate, writeAnnotationsMethods inherited from class org.jboss.jdeparser.AbstractJDocCommentable
deprecated, docComment, writeDocCommentsMethods inherited from class org.jboss.jdeparser.BasicJCommentable
blockComment, lineComment, writeCommentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
Field Details
-
typeParamDefs
-
-
Constructor Details
-
AbstractJGeneric
AbstractJGeneric()
-
-
Method Details
-
add
-
typeParam
Description copied from interface:JGenericDefDefine a type parameter.- Specified by:
typeParamin interfaceJGenericDef- Parameters:
name- the type parameter name- Returns:
- the type parameter definition
-
typeParams
Description copied from interface:JGenericDefGet all the type parameters defined at the time of invocation.- Specified by:
typeParamsin interfaceJGenericDef- Returns:
- the type parameters
-
typeParamsToArgs
JType[] typeParamsToArgs() -
writeTypeParams
- Throws:
IOException
-