Spec-Zone.ru › OpenJDK 25

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 Summary

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 descriptors conforming to JVMS 4.3.3 can be described nominally via MethodType::describeConstable; otherwise they cannot be described nominally.

Method Summary

Modifier and Type Method Description
String descriptorString()
Returns the descriptor string for this TypeDescriptor object.

Method Details

descriptorString

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

Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.

© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/invoke/TypeDescriptor.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API