package no.uio.ifi.refaktor.utils; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.core.dom.CompilationUnit; import org.eclipse.jdt.core.dom.MethodDeclaration; import org.eclipse.jdt.internal.corext.refactoring.structure.ASTNodeSearchUtil; @SuppressWarnings("restriction") public class RefaktorASTNodeSearchUtil { public static MethodDeclaration getMethodDeclarationNode(IMethod method, CompilationUnit compilationUnit) throws JavaModelException { return ASTNodeSearchUtil.getMethodDeclarationNode(method, compilationUnit); } }