摘要:
Class对象功能_获取Constructor Constructor<?>[] getConstructors() Constructor<T> getConstructor(Class<?>... parameterTypes) Constructor<?>[] getDeclaredConst 阅读全文
posted @ 2022-09-26 15:34
ja不会va
阅读(22)
评论(0)
推荐(0)
摘要:
Class对象功能概述 public static void main(String[] args) throws Exception { //获取Person的Class对象 Class personClass =Person.class; //Constructor<T> getConstruc 阅读全文
posted @ 2022-09-26 15:34
ja不会va
阅读(25)
评论(0)
推荐(0)
摘要:
注解-自定义注解-元注解 元注解:就是用于描述注解的注解 @Target:描述注解能够作用的位置 @Retention:苗猪注解被保留的阶段 @Documented:描述注解是否被抽取到api文档中 @Inherited:描述注解是否被子类继承 MyAnno3类 @MyAnno(value = 1, 阅读全文
posted @ 2022-09-26 14:17
ja不会va
阅读(43)
评论(0)
推荐(0)
摘要:
自定义注解格式&本质 格式: 元注解 public @interface注解名称{ 随机性列表} 本质:注解本质上就是一个接口,该默认继承Annotation接口 public interface MyAnno extends java.lang.annotation.Annotation {} 属 阅读全文
posted @ 2022-09-26 14:00
ja不会va
阅读(26)
评论(0)
推荐(0)