Package com.sun.codemodel
Interface JGenerifiable
-
- All Known Implementing Classes:
JAnonymousClass
,JDefinedClass
,JGenerifiableImpl
,JMethod
public interface JGenerifiable
Declarations that can have type variables. Something that can be made into a generic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JTypeVar
generify(java.lang.String name)
Adds a new type variable to this declaration.JTypeVar
generify(java.lang.String name, JClass bound)
Adds a new type variable to this declaration with a bound.JTypeVar
generify(java.lang.String name, java.lang.Class<?> bound)
Adds a new type variable to this declaration with a bound.JTypeVar[]
typeParams()
Iterates all the type parameters of this class/interface.
-
-
-
Method Detail
-
generify
JTypeVar generify(java.lang.String name)
Adds a new type variable to this declaration.
-
generify
JTypeVar generify(java.lang.String name, java.lang.Class<?> bound)
Adds a new type variable to this declaration with a bound.
-
generify
JTypeVar generify(java.lang.String name, JClass bound)
Adds a new type variable to this declaration with a bound.
-
typeParams
JTypeVar[] typeParams()
Iterates all the type parameters of this class/interface.
-
-