All Downloads are FREE. Search and download functionalities are using the official Maven repository.

proguard.AppView Maven / Gradle / Ivy

Go to download

ProGuard is a free shrinker, optimizer, obfuscator, and preverifier for Java bytecode

There is a newer version: 7.6.0
Show newest version
/*
 * ProGuard -- shrinking, optimization, obfuscation, and preverification
 *             of Java bytecode.
 *
 * Copyright (c) 2002-2021 Guardsquare NV
 */

package proguard;

import proguard.classfile.*;
import proguard.configuration.InitialStateInfo;
import proguard.io.ExtraDataEntryNameMap;
import proguard.resources.file.ResourceFilePool;

public class AppView
{
    // App model.
    public final ClassPool             programClassPool;
    public final ClassPool             libraryClassPool;
    public final ResourceFilePool      resourceFilePool;

    public final ExtraDataEntryNameMap extraDataEntryNameMap;

    /**
     * Stores information about the original state of the program class pool used for configuration debugging.
     */
    public       InitialStateInfo      initialStateInfo;

    public AppView(ClassPool programClassPool, ClassPool libraryClassPool)
    {
        this(programClassPool, libraryClassPool, new ResourceFilePool(), new ExtraDataEntryNameMap());
    }

    public AppView()
    {
        this(new ClassPool(), new ClassPool(), new ResourceFilePool(), new ExtraDataEntryNameMap());
    }

    public AppView(ClassPool             programClassPool,
                   ClassPool             libraryClassPool,
                   ResourceFilePool      resourceFilePool,
                   ExtraDataEntryNameMap extraDataEntryNameMap)
    {
        this.programClassPool      = programClassPool;
        this.resourceFilePool      = resourceFilePool;
        this.libraryClassPool      = libraryClassPool;
        this.extraDataEntryNameMap = extraDataEntryNameMap;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy