Lines Matching refs:DexClass
37 import dex.structure.DexClass;
131 public static int getClassModifiers(DexClass clazz) {
183 * @param dexClass
184 * the DexClass under test
187 public static boolean isEnum(DexClass dexClass) {
188 return (getClassModifiers(dexClass) & 0x4000) > 0;
194 * @param dexClass
195 * the DexClass under test
198 public static boolean isInterface(DexClass dexClass) {
199 int modifiers = getClassModifiers(dexClass);
206 * @param dexClass
207 * the DexClass under test
210 public static boolean isAnnotation(DexClass dexClass) {
211 return (getClassModifiers(dexClass) & 0x2000) > 0;
219 * Returns the Kind of the given DexClass.
221 * @param dexClass
222 * the DexClass under test
225 public static Kind getKind(DexClass dexClass) {
227 if (isEnum(dexClass)) {
229 } else if (isAnnotation(dexClass)) {
231 } else if (isInterface(dexClass)) {
349 * @param dexClass
354 DexClass dexClass) {
355 return getAnnotation(dexClass, ANNOTATION_DEFAULT_ANNOTATION);
453 public static boolean isPackageInfo(DexClass clazz) {
467 public static boolean isInnerClass(DexClass clazz) {
479 public static boolean isEnclosingClass(DexClass clazz) {
483 public static boolean declaresMemberClasses(DexClass dexClass) {
484 return getAnnotation(dexClass, MEMBER_CLASS_ANNOTATION) != null;
488 public static Set<String> getMemberClassNames(DexClass dexClass) {
489 DexAnnotation annotation = getAnnotation(dexClass,
502 public static String getEnclosingClassName(DexClass dexClass) {
503 DexAnnotation annotation = getAnnotation(dexClass,
510 public static boolean convertAnyWay(DexClass dexClass) {
511 return !isSynthetic(getClassModifiers(dexClass))
512 && !isAnonymousClassName(dexClass.getName())
513 || isPackageInfo(dexClass);
516 public static boolean isVisible(DexClass dexClass, Visibility visibility) {
518 if (isPackageInfo(dexClass)) {
522 if (isDeclaredInMethod(dexClass)) {
526 if (isAnonymousClassName(dexClass.getName())) {
530 int modifiers = getClassModifiers(dexClass);
535 private static boolean isDeclaredInMethod(DexClass dexClass) {
536 return getAnnotation(dexClass, ENCLOSING_METHOD_ANNOTATION) != null;
596 public static boolean isJavaLangObject(DexClass dexClass) {
597 assert dexClass != null;
598 return JAVA_LANG_OBJECT.equals(dexClass.getName());