F
- the class implementing TypeDescriptor.OfField
TypeDescriptor
ClassDesc
Class
TypeDescriptor
public static interface TypeDescriptor.OfField<F extends TypeDescriptor.OfField<F>> extends TypeDescriptor
Class::describeConstable
; otherwise they cannot be described nominally.TypeDescriptor.OfField<F extends TypeDescriptor.OfField<F>>, TypeDescriptor.OfMethod<F extends TypeDescriptor.OfField<F>,M extends TypeDescriptor.OfMethod<F,M>>
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.) |
descriptorString
boolean isArray()
boolean isPrimitive()
F componentType()
null
.null
if this field descriptor does not describe an array typeF arrayType()
© 1993, 2023, 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/21/docs/api/java.base/java/lang/invoke/TypeDescriptor.OfField.html