return AspectJCore.create(handle);
}
public static Set<IMethod> getDeclaredMethods(IType type) throws JavaModelException {
Set<IMethod> methods = new HashSet<IMethod>();
AJProjectModelFacade model = AJProjectModelFactory.getInstance().getModelForJavaElement(type);
if (model.hasModel()) {
List<IJavaElement> elements = model.getRelationshipsForElement(type, AJRelationshipManager.ASPECT_DECLARATIONS);
for (IJavaElement element : elements) {
if (element instanceof IntertypeElement) {
methods.add((IMethod) element);
}
}