Java Code Examples for proguard.classfile.Clazz#getAccessFlags()
The following examples show how to use
proguard.classfile.Clazz#getAccessFlags() .
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: MemberReferenceFixer.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Check if this class entry is an array type. if (ClassUtil.isInternalArrayType(classConstant.getName(clazz))) { isInterfaceMethod = false; } else { // Check if this class entry refers to an interface class. Clazz referencedClass = classConstant.referencedClass; if (referencedClass != null) { isInterfaceMethod = (referencedClass.getAccessFlags() & ClassConstants.INTERNAL_ACC_INTERFACE) != 0; } } }
Example 2
Source File: AccessMethodMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
public void visitAnyClass(Clazz clazz) { int accessFlags = clazz.getAccessFlags(); if ((accessFlags & ClassConstants.INTERNAL_ACC_PUBLIC) == 0) { setAccessesPackageCode(invokingMethod); } }
Example 3
Source File: PackageVisibleMemberContainingClassMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
public void visitAnyClass(Clazz clazz) { // Check the class itself. if ((clazz.getAccessFlags() & ClassConstants.INTERNAL_ACC_PUBLIC) == 0) { setPackageVisibleMembers(clazz); } else { // Check the members. clazz.fieldsAccept(this); clazz.methodsAccept(this); } }
Example 4
Source File: PackageVisibleMemberInvokingClassMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
public void visitAnyClass(Clazz clazz) { if ((clazz.getAccessFlags() & ClassConstants.INTERNAL_ACC_PUBLIC) == 0) { setInvokesPackageVisibleMembers(referencingClass); } }
Example 5
Source File: VisitorDTO.java From atlas with Apache License 2.0 | 5 votes |
private boolean isVirtualClass(String className){ Clazz clazz = libraryClassPool.getClass(className); if (null == clazz){ return false; } if ((clazz.getAccessFlags() & ClassConstants.ACC_ABSTRACT) == ClassConstants.ACC_ABSTRACT) { abstractClasses.add(className); return true; } return false; }