Package org.springframework.aot.hint
Class FieldHint
java.lang.Object
org.springframework.aot.hint.MemberHint
org.springframework.aot.hint.FieldHint
A hint that describes the need of reflection on a
Field
.- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return whether if usingUnsafe
on the field should be allowed.boolean
Return whether setting the value of the field should be allowed.Methods inherited from class org.springframework.aot.hint.MemberHint
getName
-
Method Details
-
isAllowWrite
public boolean isAllowWrite()Return whether setting the value of the field should be allowed.- Returns:
true
to allowField.set(Object, Object)
.
-
isAllowUnsafeAccess
public boolean isAllowUnsafeAccess()Return whether if usingUnsafe
on the field should be allowed.- Returns:
true
to allow unsafe access
-