OfField
interface OfField<F : TypeDescriptor.OfField<F>!> : TypeDescriptor
java.lang.invoke.TypeDescriptor.OfField |
An entity that has a field type descriptor. Field descriptors conforming to JVMS {@jvms 4.3.2} can be described
Summary
Public methods | |
---|---|
abstract F |
Return a descriptor for the array type whose component type is described by this descriptor |
abstract F |
If this field descriptor describes an array type, return a descriptor for its component type, otherwise return |
abstract Boolean |
isArray() Does this field descriptor describe an array type? |
abstract Boolean |
Does this field descriptor describe a primitive type (including void.) |
Inherited functions | |
---|---|
Public methods
arrayType
abstract fun arrayType(): F
Return a descriptor for the array type whose component type is described by this descriptor
Return | |
---|---|
F |
the descriptor for the array type |
componentType
abstract fun componentType(): F
If this field descriptor describes an array type, return a descriptor for its component type, otherwise return null
.
Return | |
---|---|
F |
the component type, or null if this field descriptor does not describe an array type |
isArray
abstract fun isArray(): Boolean
Does this field descriptor describe an array type?
Return | |
---|---|
Boolean |
whether this field descriptor describes an array type |
isPrimitive
abstract fun isPrimitive(): Boolean
Does this field descriptor describe a primitive type (including void.)
Return | |
---|---|
Boolean |
whether this field descriptor describes a primitive type |