Java Code Examples for proguard.classfile.constant.ClassConstant#referencedClassAccept()

The following examples show how to use proguard.classfile.constant.ClassConstant#referencedClassAccept() . 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: AnnotationUsageMarker.java    From java-n-IDE-for-Android with Apache License 2.0 6 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    classUsed = usageMarker.isUsed(classConstant);

    // Is the class constant marked as being used?
    if (!classUsed)
    {
        // Check the referenced class.
        classUsed = true;
        classConstant.referencedClassAccept(this);

        // Is the referenced class marked as being used?
        if (classUsed)
        {
            // Mark the class constant and its Utf8 constant.
            usageMarker.markAsUsed(classConstant);

            markConstant(clazz, classConstant.u2nameIndex);
        }
    }
}
 
Example 2
Source File: UsageMarker.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    if (shouldBeMarkedAsUsed(classConstant))
    {
        markAsUsed(classConstant);

        markConstant(clazz, classConstant.u2nameIndex);

        // Mark the referenced class itself.
        classConstant.referencedClassAccept(this);
    }
}
 
Example 3
Source File: PackageVisibleMemberInvokingClassMarker.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    // Check the referenced class.
    if (classConstant.referencedClass != clazz)
    {
        referencingClass = clazz;

        classConstant.referencedClassAccept(this);
    }
}
 
Example 4
Source File: AccessFixer.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    referencingClass = clazz;

    // Make sure the access flags of the referenced class are acceptable.
    classConstant.referencedClassAccept(this);
}
 
Example 5
Source File: DotClassClassVisitor.java    From java-n-IDE-for-Android with Apache License 2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    // Visit the referenced class from the .class construct.
    classConstant.referencedClassAccept(classVisitor);
}
 
Example 6
Source File: ClassObfuscator.java    From bazel with Apache License 2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    // Make sure the outer class has a name.
    classConstant.referencedClassAccept(this);
}
 
Example 7
Source File: InstanceofClassMarker.java    From bazel with Apache License 2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    classConstant.referencedClassAccept(this);
}
 
Example 8
Source File: InstantiationClassMarker.java    From java-n-IDE-for-Android with Apache License 2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    classConstant.referencedClassAccept(this);
}
 
Example 9
Source File: InstanceofClassMarker.java    From java-n-IDE-for-Android with Apache License 2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    classConstant.referencedClassAccept(this);
}
 
Example 10
Source File: DotClassMarker.java    From java-n-IDE-for-Android with Apache License 2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    classConstant.referencedClassAccept(this);
}
 
Example 11
Source File: AccessMethodMarker.java    From java-n-IDE-for-Android with Apache License 2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    // Check the referenced class.
   classConstant.referencedClassAccept(this);
}
 
Example 12
Source File: InnerClassesAccessFixer.java    From java-n-IDE-for-Android with Apache License 2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    classConstant.referencedClassAccept(this);
}
 
Example 13
Source File: InstanceofClassMarker.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    classConstant.referencedClassAccept(filteredClassMarker);
}
 
Example 14
Source File: InstantiationClassMarker.java    From bazel with Apache License 2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    classConstant.referencedClassAccept(this);
}
 
Example 15
Source File: NameMarker.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    // Make sure the outer class name is kept as well.
    classConstant.referencedClassAccept(this);
}
 
Example 16
Source File: NameMarker.java    From bazel with Apache License 2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    // Make sure the outer class name is kept as well.
    classConstant.referencedClassAccept(this);
}
 
Example 17
Source File: InstanceofClassMarker.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    classConstant.referencedClassAccept(this);
}
 
Example 18
Source File: ClassObfuscator.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    // Make sure the outer class has a name.
    classConstant.referencedClassAccept(this);
}
 
Example 19
Source File: WrapperClassUseSimplifier.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    // Is the constant referring to a wrapper class?
    classConstant.referencedClassAccept(this);
}
 
Example 20
Source File: InstantiationClassMarker.java    From proguard with GNU General Public License v2.0 4 votes vote down vote up
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
    classConstant.referencedClassAccept(this);
}