Class ReflectionAccessFilterHelper
java.lang.Object
com.google.gson.internal.ReflectionAccessFilterHelper
Internal helper class for
ReflectionAccessFilter.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanAccess(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.ALLOWif the list of filters is empty or all returnedINDECISIVE.static booleanisAndroidType(Class<?> c) static booleanisAnyPlatformType(Class<?> c) static booleanisJavaType(Class<?> c)
-
Method Details
-
isJavaType
-
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.ALLOWif the list of filters is empty or all returnedINDECISIVE. -
canAccess
SeeAccessibleObject.canAccess(Object)(Java >= 9)
-