Package com.sun.codemodel
Class JGenerifiableImpl
- java.lang.Object
-
- com.sun.codemodel.JGenerifiableImpl
-
- All Implemented Interfaces:
JDeclaration,JGenerifiable
- Direct Known Subclasses:
JMethod
abstract class JGenerifiableImpl extends java.lang.Object implements JGenerifiable, JDeclaration
Implementation ofJGenerifiable.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<JTypeVar>typeVariablesLazily created list ofJTypeVars.
-
Constructor Summary
Constructors Constructor Description JGenerifiableImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddeclare(JFormatter f)JTypeVargenerify(java.lang.String name)Adds a new type variable to this declaration.JTypeVargenerify(java.lang.String name, JClass bound)Adds a new type variable to this declaration with a bound.JTypeVargenerify(java.lang.String name, java.lang.Class<?> bound)Adds a new type variable to this declaration with a bound.protected abstract JCodeModelowner()JTypeVar[]typeParams()Iterates all the type parameters of this class/interface.
-
-
-
Method Detail
-
owner
protected abstract JCodeModel owner()
-
declare
public void declare(JFormatter f)
- Specified by:
declarein interfaceJDeclaration
-
generify
public JTypeVar generify(java.lang.String name)
Description copied from interface:JGenerifiableAdds a new type variable to this declaration.- Specified by:
generifyin interfaceJGenerifiable
-
generify
public JTypeVar generify(java.lang.String name, java.lang.Class<?> bound)
Description copied from interface:JGenerifiableAdds a new type variable to this declaration with a bound.- Specified by:
generifyin interfaceJGenerifiable
-
generify
public JTypeVar generify(java.lang.String name, JClass bound)
Description copied from interface:JGenerifiableAdds a new type variable to this declaration with a bound.- Specified by:
generifyin interfaceJGenerifiable
-
typeParams
public JTypeVar[] typeParams()
Description copied from interface:JGenerifiableIterates all the type parameters of this class/interface.- Specified by:
typeParamsin interfaceJGenerifiable
-
-