protected void appendSuperInterfaceTypes(final IType type) throws JavaModelException { final String[] signatures= type.getSuperInterfaceTypeSignatures(); if (signatures.length > 0) { if (type.isInterface()) fBuffer.append(" extends "); //$NON-NLS-1$ else fBuffer.append(" implements "); //$NON-NLS-1$ } for (int index= 0; index < signatures.length; index++) { if (index > 0) fBuffer.append(","); //$NON-NLS-1$ fBuffer.append(Signature.toString(signatures[index])); } }
protected void appendSuperInterfaceTypes(final IType type) throws JavaModelException { final String[] signatures= type.getSuperInterfaceTypeSignatures(); if (signatures.length > 0) { if (type.isInterface()) fBuffer.append(" extends "); //$NON-NLS-1$ else fBuffer.append(" implements "); //$NON-NLS-1$ } for (int index= 0; index < signatures.length; index++) { if (index > 0) fBuffer.append(","); //$NON-NLS-1$ fBuffer.append(Signature.toString(signatures[index])); } }
protected void appendSuperInterfaceTypes(final IType type) throws JavaModelException { final String[] signatures= type.getSuperInterfaceTypeSignatures(); if (signatures.length > 0) { if (type.isInterface()) fBuffer.append(" extends "); //$NON-NLS-1$ else fBuffer.append(" implements "); //$NON-NLS-1$ } for (int index= 0; index < signatures.length; index++) { if (index > 0) fBuffer.append(","); //$NON-NLS-1$ fBuffer.append(Signature.toString(signatures[index])); } }
static String[] getSuperTypeSignatures(IType subType, IType superType) throws JavaModelException { if (superType.isInterface()) { return subType.getSuperInterfaceTypeSignatures(); } else { return new String[] {subType.getSuperclassTypeSignature()}; } }
/** * Returns the super interface signatures of <code>subType</code> if * <code>superType</code> is an interface, otherwise returns the super * type signature. * * @param subType the sub type signature * @param superType the super type signature * @return the super type signatures of <code>subType</code> * @throws JavaModelException if any java model operation fails */ private String[] getSuperTypeSignatures(IType subType, IType superType) throws JavaModelException { if (superType.isInterface()) return subType.getSuperInterfaceTypeSignatures(); else return new String[] {subType.getSuperclassTypeSignature()}; }
/** * Returns the super interface signatures of <code>subType</code> if * <code>superType</code> is an interface, otherwise returns the super * type signature. * * @param subType the sub type signature * @param superType the super type signature * @return the super type signatures of <code>subType</code> * @throws JavaModelException if any java model operation fails */ private String[] getSuperTypeSignatures(IType subType, IType superType) throws JavaModelException { if (superType.isInterface()) return subType.getSuperInterfaceTypeSignatures(); else return new String[] {subType.getSuperclassTypeSignature()}; }
/** * Returns the super interface signatures of <code>subType</code> if * <code>superType</code> is an interface, otherwise returns the super * type signature. * * @param subType the sub type signature * @param superType the super type signature * @return the super type signatures of <code>subType</code> * @throws JavaModelException if any java model operation fails */ private String[] getSuperTypeSignatures(IType subType, IType superType) throws JavaModelException { if (superType.isInterface()) return subType.getSuperInterfaceTypeSignatures(); else return new String[] {subType.getSuperclassTypeSignature()}; }
/** * Returns the super interface signatures of <code>subType</code> if * <code>superType</code> is an interface, otherwise returns the super * type signature. * * @param subType the sub type signature * @param superType the super type signature * @return the super type signatures of <code>subType</code> * @throws JavaModelException if any java model operation fails */ private String[] getSuperTypeSignatures(IType subType, IType superType) throws JavaModelException { if (superType.isInterface()) return subType.getSuperInterfaceTypeSignatures(); else return new String[] {subType.getSuperclassTypeSignature()}; }
/** * Returns the super interface signatures of <code>subType</code> if * <code>superType</code> is an interface, otherwise returns the super * type signature. * * @param subType the sub type signature * @param superType the super type signature * @return the super type signatures of <code>subType</code> * @throws JavaModelException if any java model operation fails */ private String[] getSuperTypeSignatures(IType subType, IType superType) throws JavaModelException { if (superType.isInterface()) return subType.getSuperInterfaceTypeSignatures(); else return new String[] {subType.getSuperclassTypeSignature()}; }
/** * Returns the super interface signatures of <code>subType</code> if * <code>superType</code> is an interface, otherwise returns the super * type signature. * * @param subType the sub type signature * @param superType the super type signature * @return the super type signatures of <code>subType</code> * @throws JavaModelException if any java model operation fails */ private String[] getSuperTypeSignatures(IType subType, IType superType) throws JavaModelException { if (superType.isInterface()) return subType.getSuperInterfaceTypeSignatures(); else return new String[] {subType.getSuperclassTypeSignature()}; }
/** * Returns the super interface signatures of <code>subType</code> if <code>superType</code> is an interface, * otherwise returns the super type signature. * * @param subType * the sub type signature * @param superType * the super type signature * @return the super type signatures of <code>subType</code> * @throws JavaModelException * if any java model operation fails */ private String[] getSuperTypeSignatures(final IType subType, final IType superType) throws JavaModelException { if (superType.isInterface()) { return subType.getSuperInterfaceTypeSignatures(); } else { return new String[] { subType.getSuperclassTypeSignature() }; } }
/** * Returns the super interface signatures of <code>subType</code> if <code>superType</code> is an interface, * otherwise returns the super type signature. * * @param subType * the sub type signature * @param superType * the super type signature * @return the super type signatures of <code>subType</code> * @throws JavaModelException * if any java model operation fails */ private String[] getSuperTypeSignatures(final IType subType, final IType superType) throws JavaModelException { if (superType.isInterface()) { return subType.getSuperInterfaceTypeSignatures(); } else { return new String[] { subType.getSuperclassTypeSignature() }; } }
@Override public IType next() { final IType c = this.current; if (c == null) { throw new NoSuchElementException(); } final String name = c.getFullyQualifiedName(); this.encountered.add(name); try { final String[] superTypes; if (this.isInterface) { superTypes = c.getSuperInterfaceTypeSignatures(); } else { superTypes = new String[] {c.getSuperclassTypeSignature()}; } for (final String signature : superTypes) { if (!Strings.isNullOrEmpty(signature)) { final String resolvedSignature = resolveType(c, signature); if (!Strings.isNullOrEmpty(resolvedSignature)) { this.queue.add(resolvedSignature); } } } } catch (Exception exception) { // } updateCurrent(); return c; }
String[] interfaceTypes = type.getSuperInterfaceTypeSignatures(); int interfaceCount = interfaceTypes == null ? 0 : interfaceTypes.length; typeDeclaration.superInterfaces = new TypeReference[interfaceCount];
String[] interfaceTypes = type.getSuperInterfaceTypeSignatures(); int interfaceCount = interfaceTypes == null ? 0 : interfaceTypes.length; typeDeclaration.superInterfaces = new TypeReference[interfaceCount];
String[] superInterfacesTypeSignature= instantiatedType.getSuperInterfaceTypeSignatures(); int nInterfaces= superInterfacesTypeSignature.length; if (nInterfaces > 0) {
superInterfacesTypeSignature= instantiatedType.getSuperInterfaceTypeSignatures();
superInterfacesTypeSignature= instantiatedType.getSuperInterfaceTypeSignatures();
typeName= "() -> {...}"; //$NON-NLS-1$ try { String[] superInterfaceSignatures= type.getSuperInterfaceTypeSignatures(); if (superInterfaceSignatures.length > 0) { typeName= typeName + ' ' + getSimpleTypeName(type, superInterfaceSignatures[0]); } else { String supertypeName= null; String[] superInterfaceSignatures= type.getSuperInterfaceTypeSignatures(); if (superInterfaceSignatures.length > 0) { supertypeName= getSimpleTypeName(type, superInterfaceSignatures[0]);
addPackages(type.getSuperInterfaceTypeSignatures(), pkgs, type, binary, subMonitor.split(1));