TypeDescriptor
public
interface
TypeDescriptor
An entity that has a type descriptor.
Summary
Nested classes | |
|---|---|
interface |
TypeDescriptor.OfField<F extends OfField<F>>
An entity that has a field type descriptor. |
interface |
TypeDescriptor.OfMethod<F extends OfField<F>, M extends OfMethod<F, M>>
An entity that has a method type descriptor Method descriptors conforming to JVMS {@jvms 4.3.3} can be described |
Public methods | |
|---|---|
abstract
String
|
descriptorString()
Returns the descriptor string for this |
Public methods
descriptorString
public abstract String descriptorString ()
Returns the descriptor string for this TypeDescriptor object.
If this TypeDescriptor object can be described in nominal form,
then this method returns a type descriptor as specified in JVMS {@jvms 4.3}.
The result descriptor string can be used to produce
a java.lang.constant.ConstantDesc nominal descriptor.
Otherwise, the result string is not a type descriptor.
No java.lang.constant.ConstantDesc nominal descriptor
can be produced from the result string.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-03 UTC.
