private static boolean confirmAbstract(IMember element) throws JavaModelException { // never show the abstract symbol on interfaces if (element.getElementType() == IJavaElement.TYPE) { return ! JavaModelUtil.isInterfaceOrAnnotation((IType) element); } return true; }
private static boolean confirmAbstract(IMember element) throws JavaModelException { // never show the abstract symbol on interfaces if (element.getElementType() == IJavaElement.TYPE) { return ! JavaModelUtil.isInterfaceOrAnnotation((IType) element); } return true; }
private static boolean confirmAbstract(IMember element) throws JavaModelException { // never show the abstract symbol on interfaces or members in interfaces if (element.getElementType() == IJavaElement.TYPE) { return ! JavaModelUtil.isInterfaceOrAnnotation((IType) element); } return ! JavaModelUtil.isInterfaceOrAnnotation(element.getDeclaringType()); }
private boolean isMemberInInterfaceOrAnnotation(IMember member) throws JavaModelException { IType parent= member.getDeclaringType(); return parent != null && JavaModelUtil.isInterfaceOrAnnotation(parent); }
public static IMethod[] getAllConstructors(IType type) throws JavaModelException { if (JavaModelUtil.isInterfaceOrAnnotation(type)) return new IMethod[0]; List result= new ArrayList(); IMethod[] methods= type.getMethods(); for (int i= 0; i < methods.length; i++) { IMethod iMethod= methods[i]; if (iMethod.isConstructor()) result.add(iMethod); } return (IMethod[]) result.toArray(new IMethod[result.size()]); }
public static IMethod[] getAllConstructors(IType type) throws JavaModelException { if (JavaModelUtil.isInterfaceOrAnnotation(type)) return new IMethod[0]; List<IMethod> result= new ArrayList<>(); IMethod[] methods= type.getMethods(); for (int i= 0; i < methods.length; i++) { IMethod iMethod= methods[i]; if (iMethod.isConstructor()) result.add(iMethod); } return result.toArray(new IMethod[result.size()]); }
public static IMethod[] getAllConstructors(IType type) throws JavaModelException { if (JavaModelUtil.isInterfaceOrAnnotation(type)) return new IMethod[0]; List<IMethod> result= new ArrayList<>(); IMethod[] methods= type.getMethods(); for (int i= 0; i < methods.length; i++) { IMethod iMethod= methods[i]; if (iMethod.isConstructor()) result.add(iMethod); } return result.toArray(new IMethod[result.size()]); }
public static IMethod[] getAllConstructors(IType type) throws JavaModelException { if (JavaModelUtil.isInterfaceOrAnnotation(type)) { return new IMethod[0]; } List<IMethod> result= new ArrayList<>(); IMethod[] methods= type.getMethods(); for (int i= 0; i < methods.length; i++) { IMethod iMethod= methods[i]; if (iMethod.isConstructor()) { result.add(iMethod); } } return result.toArray(new IMethod[result.size()]); }
private static boolean isInstanceField(IField field) throws CoreException{ if (JavaModelUtil.isInterfaceOrAnnotation(field.getDeclaringType())) { return false; } else { return ! JdtFlags.isStatic(field); } }
private static boolean isInterfaceOrAnnotationField(IMember element) throws JavaModelException { // always show the final symbol on interface fields if (element.getElementType() == IJavaElement.FIELD) { return JavaModelUtil.isInterfaceOrAnnotation(element.getDeclaringType()); } return false; }
private static boolean isInstanceField(IField field) throws CoreException{ if (JavaModelUtil.isInterfaceOrAnnotation(field.getDeclaringType())) return false; else return ! JdtFlags.isStatic(field); }
private static boolean isInstanceField(IField field) throws CoreException{ if (JavaModelUtil.isInterfaceOrAnnotation(field.getDeclaringType())) return false; else return ! JdtFlags.isStatic(field); }
private boolean isFieldInInterfaceOrAnnotation(IMember member) throws JavaModelException { return (member.getElementType() == IJavaElement.FIELD) && JavaModelUtil.isInterfaceOrAnnotation(member.getDeclaringType()); }
private static boolean isInterfaceOrAnnotationField(IMember element) throws JavaModelException { // always show the final symbol on interface fields if (element.getElementType() == IJavaElement.FIELD) { return JavaModelUtil.isInterfaceOrAnnotation(element.getDeclaringType()); } return false; }
private static boolean isNestedInterfaceOrAnnotation(IMember member) throws JavaModelException{ return member.getElementType() == IJavaElement.TYPE && member.getDeclaringType() != null && JavaModelUtil.isInterfaceOrAnnotation((IType)member); }
private static boolean isNestedInterfaceOrAnnotation(IMember member) throws JavaModelException{ return member.getElementType() == IJavaElement.TYPE && member.getDeclaringType() != null && JavaModelUtil.isInterfaceOrAnnotation((IType)member); }
private static boolean isInstanceField(IField field) throws CoreException{ if (JavaModelUtil.isInterfaceOrAnnotation(field.getDeclaringType())) return false; else return ! JdtFlags.isStatic(field); }
private static boolean isNestedInterfaceOrAnnotation(IMember member) throws JavaModelException{ return member.getElementType() == IJavaElement.TYPE && member.getDeclaringType() != null && JavaModelUtil.isInterfaceOrAnnotation((IType)member); }
private static boolean isInterfaceOrAnnotationField(IMember element) throws JavaModelException { // always show the final symbol on interface fields if (element.getElementType() == IJavaElement.FIELD) { return JavaModelUtil.isInterfaceOrAnnotation(element.getDeclaringType()); } return false; }
private static boolean isInterfaceOrAnnotationFieldOrType(IMember element) throws JavaModelException { // always show the static symbol on interface fields and types if (element.getElementType() == IJavaElement.FIELD) { return JavaModelUtil.isInterfaceOrAnnotation(element.getDeclaringType()); } else if (element.getElementType() == IJavaElement.TYPE && element.getDeclaringType() != null) { return JavaModelUtil.isInterfaceOrAnnotation(element.getDeclaringType()); } return false; }