Interface JGenericDef

All Known Subinterfaces:
JAnonymousClassDef, JClassDef, JMethodDef
All Known Implementing Classes:
AbstractJClassDef, AbstractJGeneric, AbstractJMethodDef, AnnotationJClassDef, AnnotationJMethodDef, AnonymousJClassDef, ConstructorJMethodDef, EnumConstantJClassDef, EnumJClassDef, ImplJAnonymousClassDef, InnerJAnonymousClassDef, InterfaceJClassDef, MethodJMethodDef, PlainJClassDef

public interface JGenericDef
A generic type or method definition.
  • Method Details

    • typeParam

      JTypeParamDef typeParam(String name)
      Define a type parameter.
      Parameters:
      name - the type parameter name
      Returns:
      the type parameter definition
    • typeParams

      JTypeParamDef[] typeParams()
      Get all the type parameters defined at the time of invocation.
      Returns:
      the type parameters