反射是运行时发现的关于给定类或接口的信息,如方法、字段和构造函数。
Reflection is the runtime discovery of information, such as methods, fields, and constructors, about a given class or interface.
带注解的类包含JAXB运行时解析xml(为了进行编组和反编组)所需的所有信息,还可以通过一个可选的步骤检验文档。
The annotated classes contain all the necessary information for the JAXB runtime to parse the XML for marshalling and unmarshalling, and in an optional step, to validate documents.
JVM 在装载类时记录这个签名信息,并在运行时通过反射使它可用。
The JVM records this signature information when loading a class and makes it available at run time using reflection.
应用推荐