摘要: ## 介绍 - `java.lang.reflect.InvocationHandler` - `public interface InvocationHandler` ## API ### public - invoke - invokeDefault - 调用接口的 default 方法 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.reflect.AnnotatedElement` - `public interface AnnotatedElement` ## API - isAnnotationPresent - getAnnotation - getAnnotations - get 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.reflect.Method` - `public final class Method extends Executable` - 单个方法 ## API - getReturnType - getGenericReturnType - invoke - pu 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.reflect.Field` - `public final class Field extends AccessibleObject implements Member` - 单个字段 ## API - isEnumConstant - 枚举类的成员值 - g 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.reflect.Constructor` - `public final class Constructor extends Executable` - 单个构造器 ## API - newInstance - `public T newInstance(Obj 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.reflect.Array` - `public final class Array` - 提供创建和访问Java数组的静态方法 ## API ### static - newInstance - 创建一维或多维数组 - getLength get 系列方法 - 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.reflect.Modifier` - `public class Modifier` - 修饰符 - `Class.getModifiers()` - `Member.getModifiers()` ## API ### 常量 - PUBLIC - publi 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.reflect.Member` - `public interface Member` - 成员:字段、方法、构造函数 ## API ### 常量 - PUBLIC - 所有公共成员的集合,包括继承的成员 - DECLARED - 已声明成员,不包括继承成员 # 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.reflect.Executable` - `public abstract sealed class Executable extends AccessibleObject implements Member, GenericDeclaration permi 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.reflect.AccessibleObject` - `public class AccessibleObject implements AnnotatedElement` - Field 、 Method和Constructor对象(称为反射对象)的基类 # 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(13) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.reflect.AnnotatedElement` - `public interface AnnotatedElement` - `getAnnotations()` 和 `getDeclaredAnnotations()` 方法返回的注解数组中,注解的顺序是 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(33) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.Class` - `public final class Class implements java.io.Serializable, GenericDeclaration, Type, AnnotatedElement, TypeDescriptor.OfFi 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(18) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.annotation.RetentionPolicy` - `public enum RetentionPolicy` - 注解保存策略 - 和 `@Retention` 元注解一起使用 - 只对声明此注解的代码元素的被注解声明有效 ## API ### enu 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - `java.lang.annotation.ElementType` - `public enum ElementType` - 可以配合 `@Target` 元注解使用 ## API ### enum - `TYPE` - 类、接口(包括注解接口)、枚举、记录 - `FIELD` 阅读全文
posted @ 2023-09-04 10:34 流星<。)#)))≦ 阅读(10) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - java.time.ZoneOffset - 类声明 ```java @jdk.internal.ValueBased public final class ZoneOffset extends ZoneId implements TemporalAccessor, Temporal 阅读全文
posted @ 2023-09-04 10:33 流星<。)#)))≦ 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - java.time.ZoneId - 类声明 ```java @jdk.internal.ValueBased public abstract class ZoneId implements Serializable ``` ## API ### 常量 - SHORT_IDS - 短 阅读全文
posted @ 2023-09-04 10:33 流星<。)#)))≦ 阅读(7) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - java.time.ZonedDateTime - 类声明 ```java @jdk.internal.ValueBased public final class ZonedDateTime implements Temporal, ChronoZonedDateTime, Seri 阅读全文
posted @ 2023-09-04 10:33 流星<。)#)))≦ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - java.time.temporal.TemporalAdjusters - public final class TemporalAdjusters ## API ### static - ofDateAdjuster - `TemporalAdjuster ofDateAdjus 阅读全文
posted @ 2023-09-04 10:33 流星<。)#)))≦ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - java.time.temporal.ChronoUnit - public enum ChronoUnit implements TemporalUnit ## API ### 枚举值 - NANOS:纳秒 - MICROS:微秒 - MILLIS:毫秒 - SECONDS:秒 - 阅读全文
posted @ 2023-09-04 10:33 流星<。)#)))≦ 阅读(6) 评论(0) 推荐(0) 编辑
摘要: ## 介绍 - java.time.Period - public final class Period implements ChronoPeriod, Serializable - 基于日期的时间量 - 两个 `LocalDate` 之间的时长是 `Period` - `Period` 是一个基 阅读全文
posted @ 2023-09-04 10:33 流星<。)#)))≦ 阅读(26) 评论(0) 推荐(0) 编辑