Interface GenericTyped

All Superinterfaces:
SimpleTyped, Typed
All Known Subinterfaces:
AnonymousClassCreator, ClassCreator, FieldCreator, InstanceFieldCreator, InterfaceCreator, ParamCreator, StaticFieldCreator, TypeCreator
All Known Implementing Classes:
TypeParameter, TypeParameter.OfConstructor, TypeParameter.OfMethod, TypeParameter.OfType

public sealed interface GenericTyped extends SimpleTyped permits TypeParameter, FieldCreator, ParamCreator, TypeCreator
A thing which has a generic type.
  • Method Details

    • genericType

      GenericType genericType()
      Returns the generic type of this entity (not null).
      Returns:
      the generic type of this entity (not null)
    • hasGenericType

      boolean hasGenericType()
      Returns true if this value has a generic type, or false if it does not have one.
      Returns:
      true if this value has a generic type, or false if it does not have one