Interface GenericCapable<O extends JavaType<O>>

All Known Subinterfaces:
GenericCapableSource<O,T>, JavaClass<O>, JavaClassSource, JavaInterface<O>, JavaInterfaceSource, MethodSource<O>

public interface GenericCapable<O extends JavaType<O>>
Represents a Java element that may define type variables.
Author:
mbenson
  • Method Details

    • getTypeVariables

      List<? extends TypeVariable<O>> getTypeVariables()
      Returns all the generic types associated with this object
    • getTypeVariable

      TypeVariable<O> getTypeVariable(String name)
      Returns the named TypeVariable.
      Parameters:
      name -
      Returns:
      TypeVariable or null
    • hasTypeVariable

      boolean hasTypeVariable(String name)
      Returns if the value is declared as a TypeVariable
      Parameters:
      name - the type name
      Returns:
      true if the type name is declared as a type variable, false