Framework for translating traditional pointcuts to analysis-based pointcuts