Java Code Examples for proguard.classfile.Clazz#extendsOrImplements()
The following examples show how to use
proguard.classfile.Clazz#extendsOrImplements() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReferenceValue.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
/** * Returns if the number of superclasses of the given class in the given * set of classes. */ private int superClassCount(Clazz subClass, Set classes) { int count = 0; Iterator iterator = classes.iterator(); while (iterator.hasNext()) { Clazz clazz = (Clazz)iterator.next(); if (subClass.extendsOrImplements(clazz)) { count++; } } return count; }
Example 2
Source File: ImplementedClassConstantFilter.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { Clazz referencedClass = classConstant.referencedClass; if (referencedClass == null || !referencedClass.extendsOrImplements(implementedClass)) { constantVisitor.visitClassConstant(clazz, classConstant); } }
Example 3
Source File: ImplementedClassConstantFilter.java From proguard with GNU General Public License v2.0 | 5 votes |
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { Clazz referencedClass = classConstant.referencedClass; if (referencedClass == null || !referencedClass.extendsOrImplements(implementedClass)) { constantVisitor.visitClassConstant(clazz, classConstant); } }
Example 4
Source File: ImplementedClassConstantFilter.java From bazel with Apache License 2.0 | 5 votes |
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { Clazz referencedClass = classConstant.referencedClass; if (referencedClass == null || !referencedClass.extendsOrImplements(implementedClass)) { constantVisitor.visitClassConstant(clazz, classConstant); } }