com.kero.security.core.utils.ByteBuddyClassUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kero-security Show documentation
Show all versions of kero-security Show documentation
Kero-Security is a library for statically controlling access to properties of objects / classes.
package com.kero.security.core.utils;
import net.bytebuddy.description.type.TypeDescription;
public class ByteBuddyClassUtils {
public static boolean checkAccessible(Class> target) {
return TypeDescription.ForLoadedType.of(target).asErasure().isAccessibleTo(TypeDescription.ForLoadedType.of(ByteBuddyClassUtils.class));
}
}