Module java.base
Package java.lang.invoke
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
- See Java Virtual Machine Specification:
- 
4.3.2 Field Descriptors
- Since:
- 12
- 
Nested Class SummaryNested classes/interfaces declared in interface java.lang.invoke.TypeDescriptorTypeDescriptor.OfField<F extends TypeDescriptor.OfField<F>>, TypeDescriptor.OfMethod<F extends TypeDescriptor.OfField<F>,M extends TypeDescriptor.OfMethod<F,M>>
- 
Method SummaryModifier and Type Method Description FarrayType()Return a descriptor for the array type whose component type is described by this descriptorFcomponentType()If this field descriptor describes an array type, return a descriptor for its component type, otherwise returnnull.booleanisArray()Does this field descriptor describe an array type?booleanisPrimitive()Does this field descriptor describe a primitive type (including void.)
- 
Method Details- 
isArrayboolean isArray()Does this field descriptor describe an array type?- Returns:
- whether this field descriptor describes an array type
 
- 
isPrimitiveboolean isPrimitive()Does this field descriptor describe a primitive type (including void.)- Returns:
- whether this field descriptor describes a primitive type
 
- 
componentTypeF componentType()If this field descriptor describes an array type, return a descriptor for its component type, otherwise returnnull.- Returns:
- the component type, or nullif this field descriptor does not describe an array type
 
- 
arrayTypeF arrayType()Return a descriptor for the array type whose component type is described by this descriptor- Returns:
- the descriptor for the array type
 
 
-