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

soot.jimple.infoflow.collections.context.UnknownContext Maven / Gradle / Ivy

The newest version!
package soot.jimple.infoflow.collections.context;

import soot.jimple.infoflow.data.ContainerContext;

/**
 * Representing an unknown context (e.g. non-constant key) using a singleton
 *
 * @author Tim Lange
 */
public class UnknownContext implements ContainerContext {
    private static final UnknownContext INSTANCE = new UnknownContext();

    public static UnknownContext v() {
        return INSTANCE;
    }

    private UnknownContext() {}

    @Override
    public String toString() {
        return "";
    }

    @Override
    public boolean containsInformation() {
        return false;
    }

    @Override
    public boolean isImprecise() {
        return false;
    }

    @Override
    public boolean entails(ContainerContext other) {
        // The unknown context entails all other contexts
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy