Top Description Fields Constructors Methods
com.sun.codemodel

pack-priv abstract Class JGenerifiableImpl

extends Object
implements JGenerifiable, JDeclaration
Class Inheritance
All Implemented Interfaces
com.sun.codemodel.JDeclaration, com.sun.codemodel.JGenerifiable
Known Direct Subclasses
com.sun.codemodel.JMethod
Imports
java.util.ArrayList, .List

Implementation of JGenerifiable.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private List<JTypeVar>
typeVariables

Lazily created list of JTypeVars.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public JTypeVar
generify(String name)

Implements com.sun.codemodel.JGenerifiable.generify.

Adds a new type variable to this declaration.

public JTypeVar
generify(String name, Class<?> bound)

Implements com.sun.codemodel.JGenerifiable.generify.

Adds a new type variable to this declaration with a bound.

public JTypeVar
generify(String name, JClass bound)

Implements com.sun.codemodel.JGenerifiable.generify.

Adds a new type variable to this declaration with a bound.

protected abstract JCodeModel
public JTypeVar[]
typeParams()

Implements com.sun.codemodel.JGenerifiable.typeParams.

Iterates all the type parameters of this class/interface.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

typeVariablesback to summary
private List<JTypeVar> typeVariables

Lazily created list of JTypeVars.

Constructor Detail

JGenerifiableImplback to summary
pack-priv JGenerifiableImpl()

Method Detail

declareback to summary
public void declare(JFormatter f)

Implements com.sun.codemodel.JDeclaration.declare.

Annotations
@Override
generifyback to summary
public JTypeVar generify(String name)

Implements com.sun.codemodel.JGenerifiable.generify.

Doc from com.sun.codemodel.JGenerifiable.generify.

Adds a new type variable to this declaration.

Annotations
@Override
generifyback to summary
public JTypeVar generify(String name, Class<?> bound)

Implements com.sun.codemodel.JGenerifiable.generify.

Doc from com.sun.codemodel.JGenerifiable.generify.

Adds a new type variable to this declaration with a bound.

Annotations
@Override
generifyback to summary
public JTypeVar generify(String name, JClass bound)

Implements com.sun.codemodel.JGenerifiable.generify.

Doc from com.sun.codemodel.JGenerifiable.generify.

Adds a new type variable to this declaration with a bound.

Annotations
@Override
ownerback to summary
protected abstract JCodeModel owner()
typeParamsback to summary
public JTypeVar[] typeParams()

Implements com.sun.codemodel.JGenerifiable.typeParams.

Doc from com.sun.codemodel.JGenerifiable.typeParams.

Iterates all the type parameters of this class/interface.

Annotations
@Override