TypeDescriptor (Java SE 12 & JDK 12 )
Keywords: java.lang.invoke.TypeDescriptor interface

Module java.base
Package java.lang.invoke

## Interface TypeDescriptor

- All Known Subinterfaces:
    `ClassDesc`, `MethodTypeDesc`, `TypeDescriptor.OfField<F>`, `TypeDescriptor.OfMethod<F,​M>`
  All Known Implementing Classes:
    `Class`, `MethodType`

      public interface TypeDescriptor

  An entity that has a field or method type descriptor
  Since:
    12
  See The Java™ Virtual Machine Specification:
    4.3.2 Field Descriptors, 4.3.3 Method Descriptors

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface | Description
    --- | --- | ---
    `static interface` | `TypeDescriptor.OfField<F extends TypeDescriptor.OfField<F>>` | An entity that has a field type descriptor
    `static interface` | `TypeDescriptor.OfMethod<F extends TypeDescriptor.OfField<F>,​M extends TypeDescriptor.OfMethod<F,​M>>` | An entity that has a method type descriptor

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `descriptorString()` | Return the type descriptor string for this instance, which must be either a field type descriptor (JVMS 4.3.2) or method type descriptor (JVMS 4.3.3).

- - ### Method Detail

    - #### descriptorString

          String descriptorString()

      Return the type descriptor string for this instance, which must be either a field type descriptor (JVMS 4.3.2) or method type descriptor (JVMS 4.3.3).
      Returns:
        the type descriptor
      See The Java™ Virtual Machine Specification:
        4.3.2 Field Descriptors, 4.3.3 Method Descriptors