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

net.sourceforge.pmd.symboltable.VariableUsageFinderFunction Maven / Gradle / Ivy

/**
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
 */
package net.sourceforge.pmd.symboltable;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.sourceforge.pmd.util.UnaryFunction;

public class VariableUsageFinderFunction implements UnaryFunction {
    
    private Map> results = new HashMap>();

    private Map> decls;

    public VariableUsageFinderFunction(Map> decls) {
        this.decls = decls;
    }

    public void applyTo(VariableNameDeclaration o) {
        results.put(o, decls.get(o));
    }

    public Map> getUsed() {
        return results;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy