/** * Returns the matched type's type qualified name using '.' character * as separator (e.g. enclosing type names + '.' + simple name). * * @see #getType() * @see IType#getTypeQualifiedName(char) * * @throws NullPointerException if matched type is <code> null</code> * @return fully qualified type name of the type */ public String getTypeQualifiedName() { return getType().getTypeQualifiedName('.'); } }
/** * Returns the matched type's type qualified name using '.' character * as separator (e.g. enclosing type names + '.' + simple name). * * @see #getType() * @see IType#getTypeQualifiedName(char) * * @throws NullPointerException if matched type is <code> null</code> * @return fully qualified type name of the type */ public String getTypeQualifiedName() { return getType().getTypeQualifiedName('.'); } }
/** * Returns the matched type's type qualified name using '.' character * as separator (e.g. enclosing type names + '.' + simple name). * * @see #getType() * @see IType#getTypeQualifiedName(char) * * @throws NullPointerException if matched type is <code> null</code> * @return fully qualified type name of the type */ public String getTypeQualifiedName() { return getType().getTypeQualifiedName('.'); } }
private static void appendTypePath(IType type, StringBuffer buf) { IPackageFragment pack = type.getPackageFragment(); String packPath = pack.getElementName().replace('.', '/'); String typePath = type.getTypeQualifiedName('.'); if (packPath.length() > 0) { buf.append(packPath); buf.append('/'); } buf.append(typePath); buf.append(".html"); //$NON-NLS-1$ }
private static void appendTypePath(IType type, StringBuffer buf) { IPackageFragment pack= type.getPackageFragment(); String packPath= pack.getElementName().replace('.', '/'); String typePath= type.getTypeQualifiedName('.'); if (packPath.length() > 0) { buf.append(packPath); buf.append('/'); } buf.append(typePath); buf.append(".html"); //$NON-NLS-1$ }
private static void appendTypePath(IType type, StringBuffer buf) { IPackageFragment pack= type.getPackageFragment(); appendModulePath(pack, buf); String packPath= pack.getElementName().replace('.', '/'); String typePath= type.getTypeQualifiedName('.'); if (packPath.length() > 0) { buf.append(packPath); buf.append('/'); } buf.append(typePath); buf.append(".html"); //$NON-NLS-1$ }
private String createTypeComment(IType type, String lineDelimiter) throws CoreException { String[] typeParameterNames= StubUtility.getTypeParameterNames(type.getTypeParameters()); return CodeGeneration.getTypeComment(type.getCompilationUnit(), type.getTypeQualifiedName('.'), typeParameterNames, lineDelimiter); }
private String createTypeComment(IType type, String lineDelimiter) throws CoreException { String[] typeParameterNames= StubUtility.getTypeParameterNames(type.getTypeParameters()); return CodeGeneration.getTypeComment(type.getCompilationUnit(), type.getTypeQualifiedName('.'), typeParameterNames, lineDelimiter); }
private String createTypeTags(IDocument document, DocumentCommand command, String indentation, String lineDelimiter, IType type) throws CoreException, BadLocationException { String[] typeParamNames= StubUtility.getTypeParameterNames(type.getTypeParameters()); String comment= CodeGeneration.getTypeComment(type.getCompilationUnit(), type.getTypeQualifiedName('.'), typeParamNames, lineDelimiter); if (comment != null) { boolean javadocComment= comment.startsWith("/**"); //$NON-NLS-1$ if (!isFirstComment(document, command, type, javadocComment)) return null; return prepareTemplateComment(comment.trim(), indentation, type.getJavaProject(), lineDelimiter); } return null; }
private String createTypeComment(IType type, String lineDelimiter) throws CoreException { String[] typeParameterNames= StubUtility.getTypeParameterNames(type.getTypeParameters()); return CodeGeneration.getTypeComment(type.getCompilationUnit(), type.getTypeQualifiedName('.'), typeParameterNames, lineDelimiter); }
private String createTypeTags(IDocument document, DocumentCommand command, String indentation, String lineDelimiter, IType type) throws CoreException, BadLocationException { String[] typeParamNames= StubUtility.getTypeParameterNames(type.getTypeParameters()); String comment= CodeGeneration.getTypeComment(type.getCompilationUnit(), type.getTypeQualifiedName('.'), typeParamNames, lineDelimiter); if (comment != null) { boolean javadocComment= comment.startsWith("/**"); //$NON-NLS-1$ if (!isFirstComment(document, command, type, javadocComment)) return null; return prepareTemplateComment(comment.trim(), indentation, type.getJavaProject(), lineDelimiter); } return null; }
private String createTypeTags(IDocument document, int offset, String indentation, String lineDelimiter, IType type) throws CoreException, BadLocationException { if (!accept(offset, type)) { return null; } String[] typeParamNames = StubUtility.getTypeParameterNames(type.getTypeParameters()); String comment = CodeGeneration.getTypeComment(type.getCompilationUnit(), type.getTypeQualifiedName('.'), typeParamNames, lineDelimiter); if (comment != null) { return prepareTemplateComment(comment.trim(), indentation, type.getJavaProject(), lineDelimiter); } return null; }
private Type createEnclosingType(final AST ast) throws JavaModelException { Assert.isNotNull(ast); final ITypeParameter[] parameters= fType.getDeclaringType().getTypeParameters(); final Type type= ASTNodeFactory.newType(ast, fType.getDeclaringType().getTypeQualifiedName('.')); if (parameters.length > 0) { final ParameterizedType parameterized= ast.newParameterizedType(type); for (int index= 0; index < parameters.length; index++) parameterized.typeArguments().add(ast.newSimpleType(ast.newSimpleName(parameters[index].getElementName()))); return parameterized; } return type; }
private Type createEnclosingType(final AST ast) throws JavaModelException { Assert.isNotNull(ast); final ITypeParameter[] parameters= fType.getDeclaringType().getTypeParameters(); final Type type= ASTNodeFactory.newType(ast, fType.getDeclaringType().getTypeQualifiedName('.')); if (parameters.length > 0) { final ParameterizedType parameterized= ast.newParameterizedType(type); for (int index= 0; index < parameters.length; index++) parameterized.typeArguments().add(ast.newSimpleType(ast.newSimpleName(parameters[index].getElementName()))); return parameterized; } return type; }
private void handleType(IType type, IPackageFragment destination, IProgressMonitor pm) { QualifiedNameFinder.process(fQualifiedNameSearchResult, type.getFullyQualifiedName(), destination.getElementName() + "." + type.getTypeQualifiedName(), //$NON-NLS-1$ fFilePatterns, type.getJavaProject().getProject(), pm); }
private void handleType(IType type, IPackageFragment destination, IProgressMonitor pm) { QualifiedNameFinder.process(fQualifiedNameSearchResult, type.getFullyQualifiedName(), destination.getElementName() + "." + type.getTypeQualifiedName(), //$NON-NLS-1$ fFilePatterns, type.getJavaProject().getProject(), pm); }
private void handleType(IType type, IPackageFragment destination, IProgressMonitor pm) { QualifiedNameFinder.process(fQualifiedNameSearchResult, type.getFullyQualifiedName(), destination.getElementName() + "." + type.getTypeQualifiedName(), //$NON-NLS-1$ fFilePatterns, type.getJavaProject().getProject(), pm); }
private void handleType(IType type, IPackageFragment destination, IProgressMonitor pm) { QualifiedNameFinder.process(fQualifiedNameSearchResult, type.getFullyQualifiedName(), destination.getElementName() + "." + type.getTypeQualifiedName(), //$NON-NLS-1$ fFilePatterns, type.getJavaProject().getProject(), pm); }
private Expression createAccessExpressionToEnclosingInstanceFieldText(ASTNode node, IBinding binding, AbstractTypeDeclaration declaration) { if (Modifier.isStatic(binding.getModifiers())) return node.getAST().newName(fType.getDeclaringType().getTypeQualifiedName('.')); else if ((isInAnonymousTypeInsideInputType(node, declaration) || isInLocalTypeInsideInputType(node, declaration) || isInNonStaticMemberTypeInsideInputType(node, declaration))) return createQualifiedReadAccessExpressionForEnclosingInstance(node.getAST()); else return createReadAccessExpressionForEnclosingInstance(node.getAST()); }
private Expression createAccessExpressionToEnclosingInstanceFieldText(ASTNode node, IBinding binding, AbstractTypeDeclaration declaration) { if (Modifier.isStatic(binding.getModifiers())) return node.getAST().newName(fType.getDeclaringType().getTypeQualifiedName('.')); else if ((isInAnonymousTypeInsideInputType(node, declaration) || isInLocalTypeInsideInputType(node, declaration) || isInNonStaticMemberTypeInsideInputType(node, declaration))) return createQualifiedReadAccessExpressionForEnclosingInstance(node.getAST()); else return createReadAccessExpressionForEnclosingInstance(node.getAST()); }