Spec-Zone.ru › OpenJDK 27

Interface TypeDescriptor.OfField<F extends TypeDescriptor.OfField<F>>

Type Parameters:
F - the class implementing TypeDescriptor.OfField
All Superinterfaces:
TypeDescriptor
All Known Subinterfaces:
ClassDesc
All Known Implementing Classes:
Class
Enclosing interface:
TypeDescriptor
public static interface TypeDescriptor.OfField<F extends TypeDescriptor.OfField<F>> extends TypeDescriptor
An entity that has a field type descriptor. Field descriptors conforming to JVMS §4.3.2 can be described nominally via Class::describeConstable; otherwise they cannot be described nominally.
See Java Virtual Machine Specification:
4.3.2 Field Descriptors
Since:
12

Nested Class Summary

Nested classes/interfaces declared in interface TypeDescriptor

TypeDescriptor.OfField<F>, TypeDescriptor.OfMethod<F,M>
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
F arrayType()
Return a descriptor for the array type whose component type is described by this descriptor
F componentType()
If this field descriptor describes an array type, return a descriptor for its component type, otherwise return null.
boolean isArray()
Does this field descriptor describe an array type?
boolean isPrimitive()
Does this field descriptor describe a primitive type (including void.)

Methods declared in interface TypeDescriptor

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

Method Details

isArray

boolean isArray()
Does this field descriptor describe an array type?
Returns:
whether this field descriptor describes an array type

isPrimitive

boolean isPrimitive()
Does this field descriptor describe a primitive type (including void.)
Returns:
whether this field descriptor describes a primitive type

componentType

F componentType()
If this field descriptor describes an array type, return a descriptor for its component type, otherwise return null.
Returns:
the component type, or null if this field descriptor does not describe an array type

arrayType

F arrayType()
Return a descriptor for the array type whose component type is described by this descriptor
Returns:
the descriptor for the array type

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, 2026, 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.

Spec-Zone.ru

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