protected int getTypeFlags(IType type) throws JavaModelException { return type.getFlags(); }
private boolean hasVisibilityChange(IType type) throws JavaModelException { int existingFlags = this.hierarchy.getCachedFlags(type); int newFlags = type.getFlags(); return existingFlags != newFlags; }
public boolean select(Viewer viewer, Object parent, Object element) { if (element instanceof IType) { IType type= (IType)element; try { return Flags.isPublic(type.getFlags()); } catch (JavaModelException ex) { return true; } } return true; } }
private boolean hasVisibilityChange(IType type) throws JavaModelException { int existingFlags = this.hierarchy.getCachedFlags(type); int newFlags = type.getFlags(); return existingFlags != newFlags; }
private boolean hasVisibilityChange(IType type) throws JavaModelException { int existingFlags = this.hierarchy.getCachedFlags(type); int newFlags = type.getFlags(); return existingFlags != newFlags; }
private boolean hasVisibilityChange(IType type) throws JavaModelException { int existingFlags = this.hierarchy.getCachedFlags(type); int newFlags = type.getFlags(); return existingFlags != newFlags; }
private boolean hasVisibilityChange(IType type) throws JavaModelException { int existingFlags = this.hierarchy.getCachedFlags(type); int newFlags = type.getFlags(); return existingFlags != newFlags; }
private boolean hasVisibilityChange(IType type) throws JavaModelException { int existingFlags = this.hierarchy.getCachedFlags(type); int newFlags = type.getFlags(); return existingFlags != newFlags; }
@Override public boolean select(Viewer viewer, Object parent, Object element) { if (element instanceof IType) { IType type= (IType)element; try { return Flags.isPublic(type.getFlags()); } catch (JavaModelException ex) { return true; } } return true; } }
public boolean isAbstract() { try { return Flags.isAbstract(this.getJdtMember().getFlags()); } catch (JavaModelException ex) { throw new RuntimeException(ex); } }
private boolean isCacheableLHS(IType type) throws JavaModelException { return !Flags.isFinal(type.getFlags()) && !UNCACHEABLE.contains(type.getFullyQualifiedName()); }
private boolean isDeprecated(IJavaElement element) throws JavaModelException { if (element instanceof ITypeRoot) { return Flags.isDeprecated(((ITypeRoot) element).findPrimaryType().getFlags()); } return false; }
private boolean isAbstractClass(IType res) { try { if (res.isClass() && Flags.isAbstract(res.getFlags())) return true; } catch (JavaModelException e) { //ignore } return false; }
private static boolean isTestImplementor(IType type) throws JavaModelException { if (!Flags.isAbstract(type.getFlags()) && CoreTestSearchEngine.isTestImplementor(type)) { return true; } return false; } }
private static boolean isTestImplementor(IType type) throws JavaModelException { if (!Flags.isAbstract(type.getFlags()) && CoreTestSearchEngine.isTestImplementor(type)) { return true; } return false; } }
private boolean isInnerOrAnonymousClass(IType res) { try { if (res.isClass() && (res.isAnonymous() || (Flags.isPrivate(res.getFlags())) || res.getFullyQualifiedName().indexOf("$") > 0)) //must be better way to discover if it is an inner class //$NON-NLS-1$ return true; } catch (JavaModelException e) { //ignore } return false; }
public static boolean isChangeSignatureAvailable(final IMethod method) throws JavaModelException { return Checks.isAvailable(method) && !Flags.isAnnotation(method.getDeclaringType().getFlags()); }
public static boolean isChangeSignatureAvailable(final IMethod method) throws JavaModelException { return Checks.isAvailable(method) && !Flags.isAnnotation(method.getDeclaringType().getFlags()); }
@Override public boolean test(IType candidate) { if (!super.test(candidate)) { return false; } try { return candidate.isClass() && !Flags.isAbstract(candidate.getFlags()); } catch (JavaModelException e) { throw new SdkException("Unable to check for flags in type '" + candidate.getFullyQualifiedName() + "'.", e); } } };
@SuppressWarnings("squid:S1067") protected boolean acceptType(IType jdtType) throws CoreException { //fast check before doing expensive source parsing return S2eUtils.exists(jdtType) && S2eUtils.exists(jdtType.getJavaProject()) // required! && !jdtType.isAnonymous() && !jdtType.isBinary() && jdtType.getDeclaringType() == null && Flags.isPublic(jdtType.getFlags()); }