Top Description Methods
com.sun.codemodel

public Interface JGenerifiable

Known Direct Implementers
com.sun.codemodel.JGenerifiableImpl, com.sun.codemodel.JDefinedClass

Declarations that can have type variables. Something that can be made into a generic.
Author
Kohsuke Kawaguchi ([email protected])

Method Summary

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

Adds a new type variable to this declaration.

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

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

public JTypeVar
generify(String name, JClass bound)

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

public JTypeVar[]
typeParams()

Iterates all the type parameters of this class/interface.

Method Detail

generifyback to summary
public JTypeVar generify(String name)

Adds a new type variable to this declaration.

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

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

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

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

typeParamsback to summary
public JTypeVar[] typeParams()

Iterates all the type parameters of this class/interface.