@Override public boolean isDeprecated() { return originalBinding.isDeprecated(); }
@Override public boolean visit(SuperConstructorInvocation node) { // XXX Hack for performance reasons (should loop over fJobSemanticHighlightings can call consumes(*)) if (fJobDeprecatedMemberHighlighting != null) { IMethodBinding constructorBinding= node.resolveConstructorBinding(); if (constructorBinding != null && constructorBinding.isDeprecated()) { int offset= node.getStartPosition(); int length= 5; if (offset > -1 && length > 0) addPosition(offset, length, fJobDeprecatedMemberHighlighting); } } return true; }
@Override public boolean visit(ConstructorInvocation node) { // XXX Hack for performance reasons (should loop over fJobSemanticHighlightings can call consumes(*)) if (fJobDeprecatedMemberHighlighting != null) { IMethodBinding constructorBinding= node.resolveConstructorBinding(); if (constructorBinding != null && constructorBinding.isDeprecated()) { int offset= node.getStartPosition(); int length= 4; if (offset > -1 && length > 0) addPosition(offset, length, fJobDeprecatedMemberHighlighting); } } return true; }
@Override public boolean visit(SuperConstructorInvocation node) { // XXX Hack for performance reasons (should loop over fJobSemanticHighlightings can call consumes(*)) if (fJobDeprecatedMemberHighlighting != null) { IMethodBinding constructorBinding= node.resolveConstructorBinding(); if (constructorBinding != null && constructorBinding.isDeprecated()) { int offset= node.getStartPosition(); int length= 5; if (offset > -1 && length > 0) addPosition(offset, length, fJobDeprecatedMemberHighlighting); } } return true; }
@Override public boolean visit(ConstructorInvocation node) { // XXX Hack for performance reasons (should loop over fJobSemanticHighlightings can call consumes(*)) if (fJobDeprecatedMemberHighlighting != null) { IMethodBinding constructorBinding= node.resolveConstructorBinding(); if (constructorBinding != null && constructorBinding.isDeprecated()) { int offset= node.getStartPosition(); int length= 4; if (offset > -1 && length > 0) addPosition(offset, length, fJobDeprecatedMemberHighlighting); } } return true; }
@Override public boolean visit(ConstructorInvocation node) { // XXX Hack for performance reasons (should loop over fJobSemanticHighlightings can call consumes(*)) if (fJobDeprecatedMemberHighlighting != null) { IMethodBinding constructorBinding= node.resolveConstructorBinding(); if (constructorBinding != null && constructorBinding.isDeprecated()) { int offset= node.getStartPosition(); int length= 4; if (offset > -1 && length > 0) { addPosition(offset, length, fJobDeprecatedMemberHighlighting); } } } return true; }
@Override public boolean visit(SuperConstructorInvocation node) { // XXX Hack for performance reasons (should loop over fJobSemanticHighlightings can call consumes(*)) if (fJobDeprecatedMemberHighlighting != null) { IMethodBinding constructorBinding= node.resolveConstructorBinding(); if (constructorBinding != null && constructorBinding.isDeprecated()) { int offset= node.getStartPosition(); int length= 5; if (offset > -1 && length > 0) { addPosition(offset, length, fJobDeprecatedMemberHighlighting); } } } return true; }
int deprecationCount= 0; for (int i= 0; i < bindings.length; i++) { if (bindings[i].isDeprecated()) deprecationCount++; for (int i= 0; i < bindings.length; i++) { IMethodBinding curr= bindings[i]; if (!curr.isDeprecated() || createDeprecated) { MethodDeclaration stub; try {
int deprecationCount= 0; for (int i= 0; i < bindings.length; i++) { if (bindings[i].isDeprecated()) deprecationCount++; for (int i= 0; i < bindings.length; i++) { IMethodBinding curr= bindings[i]; if (!curr.isDeprecated() || createDeprecated) { MethodDeclaration stub; try {
int deprecationCount= 0; for (int i= 0; i < bindings.length; i++) { if (bindings[i].isDeprecated()) deprecationCount++; for (int i= 0; i < bindings.length; i++) { IMethodBinding curr= bindings[i]; if (!curr.isDeprecated() || createDeprecated) { MethodDeclaration stub; try {
/** * Returns the comment for a method or constructor using the comment code templates (constructor / method / overriding method). * <code>null</code> is returned if the template is empty. * @param cu The compilation unit to which the method belongs. The compilation unit does not need to exist. * @param declaringTypeName Name of the type to which the method belongs. For inner types the name must be qualified and include the outer * types names (dot separated). See {@link org.eclipse.jdt.core.IType#getTypeQualifiedName(char)}. * @param decl The MethodDeclaration AST node that will be added as new * method. The node does not need to exist in an AST (no parent needed) and does not need to resolve. * See {@link org.eclipse.jdt.core.dom.AST#newMethodDeclaration()} for how to create such a node. * @param overridden The binding of the method to which to add an "@see" link or * <code>null</code> if no link should be created. * @param lineDelimiter The line delimiter to be used. * @return Returns the generated method comment or <code>null</code> if the * code template is empty. The returned content is unformatted and not indented (formatting required). * @throws CoreException Thrown when the evaluation of the code template fails. */ public static String getMethodComment(ICompilationUnit cu, String declaringTypeName, MethodDeclaration decl, IMethodBinding overridden, String lineDelimiter) throws CoreException { if (overridden != null) { overridden= overridden.getMethodDeclaration(); String declaringClassQualifiedName= overridden.getDeclaringClass().getQualifiedName(); String linkToMethodName= overridden.getName(); String[] parameterTypesQualifiedNames= StubUtility.getParameterTypeNamesForSeeTag(overridden); return StubUtility.getMethodComment(cu, declaringTypeName, decl, overridden.isDeprecated(), linkToMethodName, declaringClassQualifiedName, parameterTypesQualifiedNames, false, lineDelimiter); } else { return StubUtility.getMethodComment(cu, declaringTypeName, decl, false, null, null, null, false, lineDelimiter); } }
/** * Returns the comment for a method or constructor using the comment code templates (constructor / method / overriding method). * <code>null</code> is returned if the template is empty. * @param cu The compilation unit to which the method belongs. The compilation unit does not need to exist. * @param declaringTypeName Name of the type to which the method belongs. For inner types the name must be qualified and include the outer * types names (dot separated). See {@link org.eclipse.jdt.core.IType#getTypeQualifiedName(char)}. * @param decl The MethodDeclaration AST node that will be added as new * method. The node does not need to exist in an AST (no parent needed) and does not need to resolve. * See {@link org.eclipse.jdt.core.dom.AST#newMethodDeclaration()} for how to create such a node. * @param overridden The binding of the method to which to add an "@see" link or * <code>null</code> if no link should be created. * @param lineDelimiter The line delimiter to be used. * @return Returns the generated method comment or <code>null</code> if the * code template is empty. The returned content is unformatted and not indented (formatting required). * @throws CoreException Thrown when the evaluation of the code template fails. */ public static String getMethodComment(ICompilationUnit cu, String declaringTypeName, MethodDeclaration decl, IMethodBinding overridden, String lineDelimiter) throws CoreException { if (overridden != null) { overridden= overridden.getMethodDeclaration(); String declaringClassQualifiedName= overridden.getDeclaringClass().getQualifiedName(); String linkToMethodName= overridden.getName(); String[] parameterTypesQualifiedNames= StubUtility.getParameterTypeNamesForSeeTag(overridden); return StubUtility.getMethodComment(cu, declaringTypeName, decl, overridden.isDeprecated(), linkToMethodName, declaringClassQualifiedName, parameterTypesQualifiedNames, false, lineDelimiter); } else { return StubUtility.getMethodComment(cu, declaringTypeName, decl, false, null, null, null, false, lineDelimiter); } }
/** * Returns the comment for a method or constructor using the comment code templates (constructor / method / overriding method). * <code>null</code> is returned if the template is empty. * @param cu The compilation unit to which the method belongs. The compilation unit does not need to exist. * @param declaringTypeName Name of the type to which the method belongs. For inner types the name must be qualified and include the outer * types names (dot separated). See {@link org.eclipse.jdt.core.IType#getTypeQualifiedName(char)}. * @param decl The MethodDeclaration AST node that will be added as new * method. The node does not need to exist in an AST (no parent needed) and does not need to resolve. * See {@link org.eclipse.jdt.core.dom.AST#newMethodDeclaration()} for how to create such a node. * @param overridden The binding of the method to which to add an "@see" link or * <code>null</code> if no link should be created. * @param lineDelimiter The line delimiter to be used. * @return Returns the generated method comment or <code>null</code> if the * code template is empty. The returned content is unformatted and not indented (formatting required). * @throws CoreException Thrown when the evaluation of the code template fails. */ public static String getMethodComment(ICompilationUnit cu, String declaringTypeName, MethodDeclaration decl, IMethodBinding overridden, String lineDelimiter) throws CoreException { if (overridden != null) { overridden= overridden.getMethodDeclaration(); String declaringClassQualifiedName= overridden.getDeclaringClass().getQualifiedName(); String linkToMethodName= overridden.getName(); String[] parameterTypesQualifiedNames= StubUtility.getParameterTypeNamesForSeeTag(overridden); return StubUtility.getMethodComment(cu, declaringTypeName, decl, overridden.isDeprecated(), linkToMethodName, declaringClassQualifiedName, parameterTypesQualifiedNames, false, lineDelimiter); } else { return StubUtility.getMethodComment(cu, declaringTypeName, decl, false, null, null, null, false, lineDelimiter); } }
if (toImplement[i].isDeprecated()) deprecationCount++; for (int i= 0; i < toImplement.length; i++) { IMethodBinding curr= toImplement[i]; if (!curr.isDeprecated() || createDeprecated) { MethodDeclaration stub= StubUtility2.createConstructorStub(cu, astRewrite, importRewrite, curr, currTypeBinding.getName(), fVisibility, fOmitSuper, true, settings); if (stub != null) {
if (toImplement[i].isDeprecated()) deprecationCount++; for (int i= 0; i < toImplement.length; i++) { IMethodBinding curr= toImplement[i]; if (!curr.isDeprecated() || createDeprecated) { ImportRewriteContext context= new ContextSensitiveImportRewriteContext(node, importRewrite); MethodDeclaration stub= StubUtility2.createConstructorStub(cu, astRewrite, importRewrite, context, curr, currTypeBinding.getName(), fVisibility, fOmitSuper, true, settings);
if (toImplement[i].isDeprecated()) deprecationCount++; for (int i= 0; i < toImplement.length; i++) { IMethodBinding curr= toImplement[i]; if (!curr.isDeprecated() || createDeprecated) { ImportRewriteContext context= new ContextSensitiveImportRewriteContext(node, importRewrite); MethodDeclaration stub= StubUtility2.createConstructorStub(cu, astRewrite, importRewrite, context, curr, currTypeBinding.getName(), fVisibility, fOmitSuper, true, settings);
String linkToMethodName= delegate.getName(); String[] parameterTypesQualifiedNames= StubUtility.getParameterTypeNamesForSeeTag(delegate); String string= StubUtility.getMethodComment(unit, qualifiedName, decl, delegate.isDeprecated(), linkToMethodName, declaringClassQualifiedName, parameterTypesQualifiedNames, true, delimiter); if (string != null) { Javadoc javadoc= (Javadoc) rewrite.createStringPlaceholder(string, ASTNode.JAVADOC);
String linkToMethodName= delegate.getName(); String[] parameterTypesQualifiedNames= StubUtility.getParameterTypeNamesForSeeTag(delegate); String string= StubUtility.getMethodComment(unit, qualifiedName, decl, delegate.isDeprecated(), linkToMethodName, declaringClassQualifiedName, parameterTypesQualifiedNames, true, delimiter); if (string != null) { Javadoc javadoc= (Javadoc) rewrite.createStringPlaceholder(string, ASTNode.JAVADOC);
String linkToMethodName= methodBinding.getName(); String[] parameterTypesQualifiedNames= StubUtility.getParameterTypeNamesForSeeTag(methodBinding); String string= StubUtility.getMethodComment(unit, qualifiedName, decl, methodBinding.isDeprecated(), linkToMethodName, declaringClassQualifiedName, parameterTypesQualifiedNames, true, delimiter); if (string != null) { Javadoc javadoc= (Javadoc) rewrite.createStringPlaceholder(string, ASTNode.JAVADOC);