Code example for ClassToInstanceMap

Methods: getInstancecontainsKey, put

0
        return transformation;
    } 
     
    private <T extends TamerPlusTransformation> T getOrCreate(Class<T> clazz)
    { 
        if (!fTransformationCache.containsKey(clazz))
        { 
            fTransformationCache.put(clazz, construct(clazz));
        } 
        return fTransformationCache.getInstance(clazz);
    } 
     
    public RenameVariablesForTIRNodes getVariableRenameTransformation() 
    { 
        return getOrCreate(RenameVariablesForTIRNodes.class); 
    } 
     
    public TIRToMcSAFIRWithoutTemp getTIRToMcSAFIRWithoutTemp() 
    { 
        return getOrCreate(TIRToMcSAFIRWithoutTemp.class); 
Experience pair programming with AI  Get Codota for Java