Interface TypeDescriptor
- All Known Subinterfaces:
ClassDesc
,MethodTypeDesc
,TypeDescriptor.OfField<F>
,TypeDescriptor.OfMethod<F,
M>
- All Known Implementing Classes:
Class
,MethodType
public interfaceTypeDescriptor
An entity that has a type descriptor.
- Since:
- 12
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
TypeDescriptor.OfField<F extendsTypeDescriptor.OfField<F>>
An entity that has a field type descriptor.static interface
TypeDescriptor.OfMethod<F extendsTypeDescriptor.OfField<F>,M extendsTypeDescriptor.OfMethod<F,
M>> An entity that has a method type descriptor Method descriptors conforming to JVMS4.3.3 can be described nominally viaMethodType::describeConstable
; otherwise they cannot be described nominally.Method Summary
Modifier and TypeMethodDescriptionReturns the descriptor string for thisTypeDescriptor
object.
Method Details
descriptorString
String descriptorString()Returns the descriptor string for thisTypeDescriptor
object. If thisTypeDescriptor
object can be described in nominal form, then this method returns a type descriptor as specified in JVMS4.3. The result descriptor string can be used to produce anominal descriptor. Otherwise, the result string is not a type descriptor. Nonominal descriptor can be produced from the result string.- Returns:
- the descriptor string for this
TypeDescriptor
object - SeeJava Virtual Machine Specification:
- 4.3.2 Field Descriptors
4.3.3 Method Descriptors