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 type descriptor.
- Since:
- 12
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTypeDescriptor.OfField<F extends TypeDescriptor.OfField<F>>An entity that has a field type descriptor.static interfaceTypeDescriptor.OfMethod<F extends TypeDescriptor.OfField<F>, M extends TypeDescriptor.OfMethod<F,M>> An entity that has a method type descriptor Method descriptors conforming to JVMS 4.3.3 can be described nominally viaMethodType::describeConstable; otherwise they cannot be described nominally.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the descriptor string for thisTypeDescriptorobject.
- 
Method Details- 
descriptorStringString descriptorString()Returns the descriptor string for thisTypeDescriptorobject. If thisTypeDescriptorobject can be described in nominal form, then this method returns a type descriptor as specified in JVMS 4.3. The result descriptor string can be used to produce a nominal descriptor. Otherwise, the result string is not a type descriptor. No nominal descriptor can be produced from the result string.- Returns:
- the descriptor string for this TypeDescriptorobject
- See Java Virtual Machine Specification:
- 
4.3.2 Field Descriptors
 4.3.3 Method Descriptors
 
 
-