Code example for ClassToInstanceMap

Methods: getInstanceputInstancecontainsKey

0
        return analysis;
    } 
     
    private <T extends TamerPlusAnalysis> T getOrCreate(Class<T> clazz)
    { 
        if (!fAnalysisCache.containsKey(clazz))
        { 
            fAnalysisCache.putInstance(clazz, construct(clazz));
        } 
        return fAnalysisCache.getInstance(clazz);
    } 
     
    public DefinedVariablesNameCollector getDefinedVariablesAnalysis() 
    { 
        return getOrCreate(DefinedVariablesNameCollector.class); 
    } 
     
    public UsedVariablesNameCollector getUsedVariablesAnalysis() 
    { 
        return getOrCreate(UsedVariablesNameCollector.class); 
Experience pair programming with AI  Get Codota for Java