Top Description Fields Constructors Methods
org.springframework.aot.nativex

pack-priv Class ReflectionHintsWriter

extends Object
Class Inheritance
Imports
java.util.Collection, .Comparator, .LinkedHashMap, .List, .Map, .Set, java.util.stream.Stream, org.springframework.aot.hint.ExecutableHint, .ExecutableMode, .FieldHint, .MemberCategory, .ReflectionHints, .TypeHint, org.springframework.lang.Nullable

Write ReflectionHints to the JSON output expected by the GraalVM native-image compiler, typically named reflect-config.json or jni-config.json.
Authors
Sebastien Deleuze, Stephane Nicoll, Janne Valkealahti
Since
6.0
See Also
Reflection Use in Native Images, Java Native Interface (JNI) in Native Image, Native Image Build Configuration

Field Summary

Modifier and TypeField and Description
public static final ReflectionHintsWriter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
addIfNotEmpty(Map<String, Object> attributes, String name, Object value)

private void
handleCategories(Map<String, Object> attributes, Set<MemberCategory> categories)

private void
private void
private void
handleFields(Map<String, Object> attributes, Stream<FieldHint> fields)

private Map<String, Object>
private Map<String, Object>
private Map<String, Object>
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final ReflectionHintsWriter INSTANCE

Constructor Detail

ReflectionHintsWriterback to summary
pack-priv ReflectionHintsWriter()

Method Detail

addIfNotEmptyback to summary
private void addIfNotEmpty(Map<String, Object> attributes, String name, Object value)
handleCategoriesback to summary
private void handleCategories(Map<String, Object> attributes, Set<MemberCategory> categories)
handleConditionback to summary
private void handleCondition(Map<String, Object> attributes, TypeHint hint)
handleExecutablesback to summary
private void handleExecutables(Map<String, Object> attributes, List<ExecutableHint> hints)
handleFieldsback to summary
private void handleFields(Map<String, Object> attributes, Stream<FieldHint> fields)
toAttributesback to summary
private Map<String, Object> toAttributes(TypeHint hint)
toAttributesback to summary
private Map<String, Object> toAttributes(FieldHint hint)
toAttributesback to summary
private Map<String, Object> toAttributes(ExecutableHint hint)
writeback to summary
public void write(BasicJsonWriter writer, ReflectionHints hints)