Interface HasTypeParameters

All Known Subinterfaces:
JAbstractMethod, JAnnotationMethod, JConstructor, JGenericType, JMethod

public interface HasTypeParameters
Interface implemented by elements that can have can have type parameters, namely classes and methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the type parameters on this element.
  • Method Details

    • getTypeParameters

      JTypeParameter[] getTypeParameters()
      Returns the type parameters on this element.
      Returns:
      the type parameters on this element, or zero-sized array if this element is not generic