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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn whether if usingUnsafeon the field should be allowed.booleanReturn 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:
trueto allowField.set(Object, Object).
-
isAllowUnsafeAccess
public boolean isAllowUnsafeAccess()Return whether if usingUnsafeon the field should be allowed.- Returns:
trueto allow unsafe access
-