Record Class ReflectConfig
java.lang.Object
java.lang.Record
cloud.opencode.base.classloader.graalvm.ReflectConfig
- Record Components:
name- fully qualified class name | 完全限定类名allDeclaredConstructors- include all declared constructors | 包含所有已声明的构造器allDeclaredMethods- include all declared methods | 包含所有已声明的方法allDeclaredFields- include all declared fields | 包含所有已声明的字段allPublicMethods- include all public methods | 包含所有公共方法
public record ReflectConfig(String name, boolean allDeclaredConstructors, boolean allDeclaredMethods, boolean allDeclaredFields, boolean allPublicMethods)
extends Record
GraalVM reflect-config.json entry
GraalVM reflect-config.json 配置条目
Immutable record representing a single entry in the GraalVM native image reflection configuration file.
不可变记录,表示 GraalVM Native Image 反射配置文件中的单条记录。
Security | 安全性:
- Thread-safe: Yes (immutable record) - 线程安全: 是(不可变记录)
- Since:
- JDK 25, opencode-base-classloader V1.0.3
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReflectConfig(String name, boolean allDeclaredConstructors, boolean allDeclaredMethods, boolean allDeclaredFields, boolean allPublicMethods) Compact constructor with validation 带验证的紧凑构造器 -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallDeclaredConstructorsrecord component.booleanReturns the value of theallDeclaredFieldsrecord component.booleanReturns the value of theallDeclaredMethodsrecord component.booleanReturns the value of theallPublicMethodsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.toJson()Convert this entry to a JSON object string 将此条目转换为 JSON 对象字符串final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReflectConfig
public ReflectConfig(String name, boolean allDeclaredConstructors, boolean allDeclaredMethods, boolean allDeclaredFields, boolean allPublicMethods) Compact constructor with validation 带验证的紧凑构造器- Throws:
NullPointerException- if name is null | 如果 name 为 null 抛出异常
-
-
Method Details
-
toJson
Convert this entry to a JSON object string 将此条目转换为 JSON 对象字符串- Returns:
- JSON object string | JSON 对象字符串
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
allDeclaredConstructors
public boolean allDeclaredConstructors()Returns the value of theallDeclaredConstructorsrecord component.- Returns:
- the value of the
allDeclaredConstructorsrecord component
-
allDeclaredMethods
public boolean allDeclaredMethods()Returns the value of theallDeclaredMethodsrecord component.- Returns:
- the value of the
allDeclaredMethodsrecord component
-
allDeclaredFields
public boolean allDeclaredFields()Returns the value of theallDeclaredFieldsrecord component.- Returns:
- the value of the
allDeclaredFieldsrecord component
-
allPublicMethods
public boolean allPublicMethods()Returns the value of theallPublicMethodsrecord component.- Returns:
- the value of the
allPublicMethodsrecord component
-