private MethodOverrideTester getOverrideTester() throws JavaModelException { if (fOverrideTester == null) { fOverrideTester = SuperTypeHierarchyCache.getMethodOverrideTester(fStartingType); } return fOverrideTester; } }
private MethodOverrideTester getOverrideTester() throws JavaModelException { if (fOverrideTester == null) fOverrideTester= SuperTypeHierarchyCache.getMethodOverrideTester(fStartingType); return fOverrideTester; } }
private MethodOverrideTester getOverrideTester() throws JavaModelException { if (fOverrideTester == null) fOverrideTester= SuperTypeHierarchyCache.getMethodOverrideTester(fStartingType); return fOverrideTester; } }
private IMethod getInheritedMethod(IMethod method) throws JavaModelException { IType declaringType = method.getDeclaringType(); MethodOverrideTester tester = SuperTypeHierarchyCache.getMethodOverrideTester(declaringType); return tester.findOverriddenMethod(method, true); } }
/** * Returns the method inherited from, <code>null</code> if method is newly defined. * @param method the method being written * @return the ancestor method, or <code>null</code> if none * @throws JavaModelException if accessing the Java model fails */ private static IMethod getInheritedMethod(IMethod method) throws JavaModelException { IType declaringType= method.getDeclaringType(); MethodOverrideTester tester= SuperTypeHierarchyCache.getMethodOverrideTester(declaringType); return tester.findOverriddenMethod(method, true); }
/** * Finds the super implementation of the method. * * @param method the method * @return the super implementation of the method if any or <code>null</code> * @throws JavaModelException if an exception occurs while creating the type hierarchy to find * the super implementation */ static IMethod findSuperImplementation(IMethod method) throws JavaModelException { MethodOverrideTester tester= SuperTypeHierarchyCache.getMethodOverrideTester(method.getDeclaringType()); return tester.findOverriddenMethod(method, false); }
/** * Returns the method inherited from, <code>null</code> if method is newly defined. * @param method the method being written * @return the ancestor method, or <code>null</code> if none * @throws JavaModelException if accessing the java model fails */ private static IMethod getInheritedMethod(IMethod method) throws JavaModelException { IType declaringType= method.getDeclaringType(); MethodOverrideTester tester= SuperTypeHierarchyCache.getMethodOverrideTester(declaringType); return tester.findOverriddenMethod(method, true); }
/** * Returns the method inherited from, <code>null</code> if method is newly defined. * @param method the method being written * @return the ancestor method, or <code>null</code> if none * @throws JavaModelException if accessing the Java model fails */ private static IMethod getInheritedMethod(IMethod method) throws JavaModelException { IType declaringType= method.getDeclaringType(); MethodOverrideTester tester= SuperTypeHierarchyCache.getMethodOverrideTester(declaringType); return tester.findOverriddenMethod(method, true); }
private IMethod findSuperImplementation(IMethod method) throws JavaModelException { MethodOverrideTester tester= SuperTypeHierarchyCache.getMethodOverrideTester(method.getDeclaringType()); return tester.findOverriddenMethod(method, false); }
/** * Finds the super implementation of the method. * * @param method the method * @return the super implementation of the method if any or <code>null</code> * @throws JavaModelException if an exception occurs while creating the type hierarchy to find * the super implementation */ static IMethod findSuperImplementation(IMethod method) throws JavaModelException { MethodOverrideTester tester= SuperTypeHierarchyCache.getMethodOverrideTester(method.getDeclaringType()); return tester.findOverriddenMethod(method, false); }
private IMethod findSuperImplementation(IMethod method) throws JavaModelException { MethodOverrideTester tester= SuperTypeHierarchyCache.getMethodOverrideTester(method.getDeclaringType()); return tester.findOverriddenMethod(method, false); }
private IMethod findSuperImplementation(IMethod method) throws JavaModelException { MethodOverrideTester tester= SuperTypeHierarchyCache.getMethodOverrideTester(method.getDeclaringType()); return tester.findOverriddenMethod(method, false); }
private static StringBuffer createSuperMethodReferences(final IMethod method) throws JavaModelException { IType type= method.getDeclaringType(); ITypeHierarchy hierarchy= SuperTypeHierarchyCache.getTypeHierarchy(type); final MethodOverrideTester tester= SuperTypeHierarchyCache.getMethodOverrideTester(type);
private static StringBuffer createSuperMethodReferences(final IMethod method) throws JavaModelException { IType type = method.getDeclaringType(); ITypeHierarchy hierarchy = SuperTypeHierarchyCache.getTypeHierarchy(type); final MethodOverrideTester tester = SuperTypeHierarchyCache.getMethodOverrideTester(type);
IType type= method.getDeclaringType(); ITypeHierarchy hierarchy= SuperTypeHierarchyCache.getTypeHierarchy(type); final MethodOverrideTester tester= SuperTypeHierarchyCache.getMethodOverrideTester(type);
IType type = method.getDeclaringType(); ITypeHierarchy hierarchy = SuperTypeHierarchyCache.getTypeHierarchy(type); final MethodOverrideTester tester = SuperTypeHierarchyCache.getMethodOverrideTester(type);
IType type= method.getDeclaringType(); ITypeHierarchy hierarchy= SuperTypeHierarchyCache.getTypeHierarchy(type); final MethodOverrideTester tester= SuperTypeHierarchyCache.getMethodOverrideTester(type);
/** * Note: This method is for internal use only. Clients should not call this method. * * @param method The element to decorate * @return Resulting decorations (combination of JavaElementImageDescriptor.IMPLEMENTS and * JavaElementImageDescriptor.OVERRIDES) * @throws JavaModelException if accessing a Java Model element fails * @noreference This method is not intended to be referenced by clients. */ protected int getOverrideIndicators(IMethod method) throws JavaModelException { CompilationUnit astRoot= SharedASTProvider.getAST(method.getTypeRoot(), SharedASTProvider.WAIT_ACTIVE_ONLY, null); if (astRoot != null) { int res= findInHierarchyWithAST(astRoot, method); if (res != -1) { return res; } } IType type= method.getDeclaringType(); MethodOverrideTester methodOverrideTester= SuperTypeHierarchyCache.getMethodOverrideTester(type); IMethod defining= methodOverrideTester.findOverriddenMethod(method, true); if (defining != null) { if (JdtFlags.isAbstract(defining)) { return JavaElementImageDescriptor.IMPLEMENTS; } else { return JavaElementImageDescriptor.OVERRIDES; } } return 0; }
/** * Note: This method is for internal use only. Clients should not call this method. * * @param method The element to decorate * @return Resulting decorations (combination of JavaElementImageDescriptor.IMPLEMENTS and * JavaElementImageDescriptor.OVERRIDES) * @throws JavaModelException if accessing a Java Model element fails * @noreference This method is not intended to be referenced by clients. */ protected int getOverrideIndicators(IMethod method) throws JavaModelException { CompilationUnit astRoot= SharedASTProviderCore.getAST(method.getTypeRoot(), SharedASTProviderCore.WAIT_ACTIVE_ONLY, null); if (astRoot != null) { int res= findInHierarchyWithAST(astRoot, method); if (res != -1) { return res; } } IType type= method.getDeclaringType(); MethodOverrideTester methodOverrideTester= SuperTypeHierarchyCache.getMethodOverrideTester(type); IMethod defining= methodOverrideTester.findOverriddenMethod(method, true); if (defining != null) { if (JdtFlags.isAbstract(defining)) { return JavaElementImageDescriptor.IMPLEMENTS; } else { return JavaElementImageDescriptor.OVERRIDES; } } return 0; }
/** * Note: This method is for internal use only. Clients should not call this method. * @param method The element to decorate * @return Resulting decorations (combination of JavaElementImageDescriptor.IMPLEMENTS * and JavaElementImageDescriptor.OVERRIDES) * @throws JavaModelException */ protected int getOverrideIndicators(IMethod method) throws JavaModelException { CompilationUnit astRoot= JavaPlugin.getDefault().getASTProvider().getAST((IJavaElement) method.getOpenable(), ASTProvider.WAIT_ACTIVE_ONLY, null); if (astRoot != null) { int res= findInHierarchyWithAST(astRoot, method); if (res != -1) { return res; } } IType type= method.getDeclaringType(); MethodOverrideTester methodOverrideTester= SuperTypeHierarchyCache.getMethodOverrideTester(type); IMethod defining= methodOverrideTester.findOverriddenMethod(method, true); if (defining != null) { if (JdtFlags.isAbstract(defining)) { return JavaElementImageDescriptor.IMPLEMENTS; } else { return JavaElementImageDescriptor.OVERRIDES; } } return 0; }