模块 java.base

接口 ClassDesc

所有父级接口:
ConstantDesc , TypeDescriptor , TypeDescriptor.OfField<ClassDesc>

public sealed interface ClassDesc extends ConstantDesc , TypeDescriptor.OfField <ClassDesc >
名义描述符 代表 Class 常量。

对于常见的系统类型,包括所有原始类型,在 ConstantDescs 中有预定义的 ClassDesc 常量。 (java.lang.constant API 将 void 视为基本类型。)要为类或接口类型创建 ClassDesc,请使用 of(java.lang.String) ofDescriptor(String) ;要为数组类型创建 ClassDesc,请使用 ofDescriptor(String) ,或首先为组件类型获取 ClassDesc,然后调用 arrayType() arrayType(int) 方法。

自从:
12
参见: