Module java.base

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
See Java Virtual Machine Specification:
4.3.2 Field Descriptors
4.3.3 Method Descriptors
Since:
12
  • Method Details

    • 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 Java Virtual Machine Specification:
      4.3.2 Field Descriptors
      4.3.3 Method Descriptors