Example usage for org.aspectj.asm IProgramElement getRemovedAnnotationTypes

List of usage examples for org.aspectj.asm IProgramElement getRemovedAnnotationTypes

Introduction

In this page you can find the example usage for org.aspectj.asm IProgramElement getRemovedAnnotationTypes.

Prototype

public String[] getRemovedAnnotationTypes();

Source Link

Usage

From source file:org.eclipse.ajdt.internal.ui.refactoring.PushInRefactoring.java

License:Open Source License

private TextEdit createEditForDeclareTarget(DeclareElement itd, IMember target) throws JavaModelException {
    DeclareElementInfo declareElementInfo = (DeclareElementInfo) itd.getElementInfo();
    if (declareElementInfo.isAnnotationRemover()) {
        // must use the model to access removals
        AJProjectModelFacade model = getModel(itd);
        IProgramElement ipe = model.javaElementToProgramElement(itd);
        return getAnnotationRemovalEdit(target, ipe.getRemovedAnnotationTypes());
    } else {/*from  w  ww .  j a  v a  2s.  c o  m*/
        return new InsertEdit(getDeclareInsertLocation(target), getTextForDeclare(itd));
    }
}