Javareflect 简明教程
Discuss java.lang.reflect
java.lang.reflect 包提供用于获取有关类和对象的反向信息的类和接口。反射 API 允许以编程方式访问已加载类的字段、方法和构造函数的信息。它允许使用反射字段、方法和构造函数在安全限制中操作它们的基础对应项。此参考将引导您了解 java.lang.reflect 包中提供的简单且实用的方法。
java.lang.reflect package provides classes and interfaces which are used to obtain reflective information about classes and objects. Reflection API allows programmatic access to information about the fields, methods and constructors of loaded classes. It allows use of reflected fields, methods, and constructors to operate on their underlying counterparts, within security restrictions. This reference will take you through simple and practical methods available in java.lang.reflect package.