java.lang.Object
com.google.gson.internal.ReflectionAccessFilterHelper
Internal helper class for
ReflectionAccessFilter
.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canAccess
(AccessibleObject accessibleObject, Object object) SeeAccessibleObject.canAccess(Object)
(Java >= 9)getFilterResult
(List<ReflectionAccessFilter> reflectionFilters, Class<?> c) Gets the result of applying all filters until the first one returns a result other thanReflectionAccessFilter.FilterResult.INDECISIVE
, orReflectionAccessFilter.FilterResult.ALLOW
if the list of filters is empty or all returnedINDECISIVE
.static boolean
isAndroidType
(Class<?> c) private static boolean
isAndroidType
(String className) static boolean
isAnyPlatformType
(Class<?> c) static boolean
isJavaType
(Class<?> c) private static boolean
isJavaType
(String className)
-
Constructor Details
-
ReflectionAccessFilterHelper
private ReflectionAccessFilterHelper()
-
-
Method Details
-
isJavaType
-
isJavaType
-
isAndroidType
-
isAndroidType
-
isAnyPlatformType
-
getFilterResult
public static ReflectionAccessFilter.FilterResult getFilterResult(List<ReflectionAccessFilter> reflectionFilters, Class<?> c) Gets the result of applying all filters until the first one returns a result other thanReflectionAccessFilter.FilterResult.INDECISIVE
, orReflectionAccessFilter.FilterResult.ALLOW
if the list of filters is empty or all returnedINDECISIVE
. -
canAccess
SeeAccessibleObject.canAccess(Object)
(Java >= 9)
-