Module cloud.opencode.base.reflect


module cloud.opencode.base.reflect
OpenCode Base Reflect Module OpenCode 基础反射模块

Provides comprehensive Java reflection utilities with type safety, fluent API, and JDK 25 features support.

提供全面的 Java 反射工具,支持类型安全、流畅 API 和 JDK 25 特性。

Key Features | 主要功能:

  • TypeToken - Generic type capture (similar to Guava) - 泛型类型捕获
  • Invokable - Fluent method/constructor wrapper - 流畅方法/构造器包装
  • ClassPath/Scanner - Class scanning - 类路径扫描
  • PropertyAccessor - High-performance access (VarHandle/MethodHandle) - 高性能访问
  • BeanCopier - Bean property copying - Bean属性复制
  • Record Support - Record operations - Record操作
  • Sealed Class Support - Sealed class operations - 密封类操作
  • Lambda Support - Method reference parsing - Lambda/方法引用解析
  • LambdaAccessor - Near-zero-cost property access via LambdaMetafactory - 基于LambdaMetafactory的近零开销属性访问
  • SealedDispatcher - Type-safe sealed class dispatch - 类型安全密封类分发
  • RecordMapper - Advanced Record/Bean mapping - 高级Record/Bean映射
  • AnnotationMerger - Composed annotation attribute resolution - 组合注解属性解析
  • ModuleUtil - Module-system-aware reflection - 模块系统感知反射
  • MethodSignature - Method signature matching and override detection - 方法签名匹配和覆盖检测
Since:
JDK 25, opencode-base-reflect V1.0.0
Author:
Leon Soo