Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.wsi/wsicore/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1212.java')
-rw-r--r--bundles/org.eclipse.wst.wsi/wsicore/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1212.java165
1 files changed, 0 insertions, 165 deletions
diff --git a/bundles/org.eclipse.wst.wsi/wsicore/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1212.java b/bundles/org.eclipse.wst.wsi/wsicore/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1212.java
deleted file mode 100644
index 8c1f77280..000000000
--- a/bundles/org.eclipse.wst.wsi/wsicore/org/eclipse/wst/wsi/internal/core/profile/validator/impl/envelope/BP1212.java
+++ /dev/null
@@ -1,165 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2002-2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.wsi.internal.core.profile.validator.impl.envelope;
-
-import java.util.Iterator;
-import java.util.List;
-
-import javax.wsdl.BindingOperation;
-import javax.xml.namespace.QName;
-
-import org.eclipse.wst.wsi.internal.core.WSIConstants;
-import org.eclipse.wst.wsi.internal.core.WSIException;
-import org.eclipse.wst.wsi.internal.core.analyzer.AssertionFailException;
-import org.eclipse.wst.wsi.internal.core.analyzer.AssertionNotApplicableException;
-import org.eclipse.wst.wsi.internal.core.log.MessageEntry;
-import org.eclipse.wst.wsi.internal.core.profile.TestAssertion;
-import org.eclipse.wst.wsi.internal.core.profile.validator.EntryContext;
-import org.eclipse.wst.wsi.internal.core.profile.validator.impl.AssertionProcess;
-import org.eclipse.wst.wsi.internal.core.profile.validator.impl.BaseMessageValidator;
-import org.eclipse.wst.wsi.internal.core.report.AssertionResult;
-import org.eclipse.wst.wsi.internal.core.xml.XMLUtils;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-/**
- * BP1212
- *
- * <context>For a candidate non-fault envelope containing a soap:body with at least one element</context>
- * <assertionDescription>The envelope contains exactly one part accessor element for each of the wsdl:part elements bound to the envelope's corresponding soapbind:body element.</assertionDescription>
- */
-public class BP1212 extends AssertionProcess {
-
- private final BaseMessageValidator validator;
-
- /**
- * @param BaseMessageValidator
- */
- public BP1212(BaseMessageValidator impl)
- {
- super(impl);
- this.validator = impl;
- }
-
- public AssertionResult validate(
- TestAssertion testAssertion,
- EntryContext entryContext)
- throws WSIException
- {
- try
- {
- if (validator.isOneWayResponse(entryContext))
- throw new AssertionNotApplicableException();
-
- // Getting a message document
- Document doc = entryContext.getMessageEntryDocument();
-
- Element soapOperation = null;
- // If there is a Fault entry or no body entries,
- // the assertion is not applicable
- if (validator.isFault(doc)
- || (soapOperation = validator.getSoapBodyChild(doc)) == null)
- throw new AssertionNotApplicableException();
-
- // Creating a qualified name of potential SOAP operation
- QName operationQName = new QName(
- soapOperation.getNamespaceURI(), soapOperation.getLocalName());
-
- // Retrieving all the RPC binding operations from wsdl:binding
- BindingOperation[] rpcBindingOperations =
- validator.getMatchingBindingOps(
- WSIConstants.ATTRVAL_SOAP_BIND_STYLE_RPC,
- validator.analyzerContext.getCandidateInfo().getBindings());
-
- // Retrieving binding operation by given operation name
- BindingOperation bindingOperation = validator.getOperationMatch(
- entryContext.getEntry().getEntryType(),
- operationQName,
- rpcBindingOperations);
-
- // If there is no matched operation, the assertion is not applicable
- if (bindingOperation == null)
- throw new AssertionNotApplicableException();
-
- // Finding operation message parts and extensibility elems
- // in the binding depending on message type
- List operationMessageParts = null;
- List extElems = null;
- if (entryContext.getMessageEntry().getType().equals(
- MessageEntry.TYPE_REQUEST))
- {
- operationMessageParts = bindingOperation.getOperation()
- .getInput().getMessage().getOrderedParts(null);
- if (bindingOperation.getBindingInput() != null)
- extElems =
- bindingOperation.getBindingInput().getExtensibilityElements();
- }
- else
- {
- operationMessageParts = bindingOperation.getOperation()
- .getOutput().getMessage().getOrderedParts(null);
- if (bindingOperation.getBindingOutput() != null)
- extElems =
- bindingOperation.getBindingOutput().getExtensibilityElements();
- }
-
- // Getting all the accessors of the operation element
- List accessors = XMLUtils.getChildElements(soapOperation);
- // Getting the ordered list of wsdl:part names
- List orderedPartNames =
- validator.orderPartNames(operationMessageParts, extElems);
- // Going through all the wsdl:part names
- Iterator i = orderedPartNames.iterator();
- while (i.hasNext())
- {
- String partName = (String) i.next();
- // If there is not exactly one accessor for the part specified,
- // the assertion failed
- if (getPartsCount(accessors, partName) != 1)
- throw new AssertionFailException(
- "The name of wsdl:part is " + partName);
- }
- }
- catch (AssertionNotApplicableException anae)
- {
- result = AssertionResult.RESULT_NOT_APPLICABLE;
- }
- catch (AssertionFailException afe)
- {
- result = AssertionResult.RESULT_FAILED;
- failureDetail = validator.createFailureDetail(
- afe.getMessage(), entryContext);
- }
-
- return validator.createAssertionResult(
- testAssertion, result, failureDetail);
- }
-
- /**
- * Counts the amount of accessors of a specific name
- * @param accessors a list of accessors
- * @param name the name of accessor elements to be counted
- * @return
- */
- private int getPartsCount(List accessors, String name)
- {
- int count = 0;
-
- for (int i = 0; i < accessors.size(); i++)
- {
- Element accessor = (Element) accessors.get(i);
- if (accessor.getLocalName().equals(name))
- count++;
- }
-
- return count;
- }
-} \ No newline at end of file

Back to the top

'width: 0.4%;'/> -rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AbstractVariableDeclaration.java15
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/IntersectionCastTypeReference.java18
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/JavadocImplicitTypeReference.java6
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/JavadocMessageSend.java3
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/JavadocReturnStatement.java6
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/MemberValuePair.java3
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ParameterizedQualifiedTypeReference.java3
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ThisReference.java12
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeParameter.java3
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/UnionTypeReference.java18
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java52
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/InnerClassInfo.java22
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/MethodInfo.java30
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/CompilerStats.java3
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ArrayBinding.java18
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ParameterizedTypeBinding.java3
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/WildcardBinding.java30
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/JavadocParser.java27
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/diagnose/LexStream.java3
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/DefaultProblem.java43
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/Messages.java3
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTSyntaxErrorPropagator.java30
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AbstractTypeDeclaration.java3
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Annotation.java3
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AnnotationBinding.java4
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AnnotationTypeDeclaration.java45
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AnnotationTypeMemberDeclaration.java36
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AnonymousClassDeclaration.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayAccess.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayCreation.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayInitializer.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayType.java29
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AssertStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Assignment.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Block.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BlockComment.java21
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BodyDeclaration.java3
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BooleanLiteral.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BreakStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CastExpression.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CatchClause.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CharacterLiteral.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ClassInstanceCreation.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Comment.java3
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java28
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnitResolver.java3
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ConditionalExpression.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ConstructorInvocation.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ContinueStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CreationReference.java30
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java171
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Dimension.java18
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DoStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java40
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/EmptyStatement.java18
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/EnhancedForStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/EnumConstantDeclaration.java36
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/EnumDeclaration.java45
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ExpressionMethodReference.java30
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ExpressionStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/FieldAccess.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/FieldDeclaration.java36
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ForStatement.java28
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/IfStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ImportDeclaration.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/InfixExpression.java30
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Initializer.java36
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/InstanceofExpression.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/IntersectionType.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Javadoc.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/LabeledStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/LambdaExpression.java32
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/LineComment.java21
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MarkerAnnotation.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MemberRef.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MemberValuePair.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MemberValuePairBinding.java4
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodDeclaration.java39
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodInvocation.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodRef.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodRefParameter.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java30
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ModuleDeclaration.java10
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ModuleModifier.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NameQualifiedType.java23
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NormalAnnotation.java30
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NullLiteral.java21
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NumberLiteral.java25
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/PackageBinding.java29
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/PackageDeclaration.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ParameterizedType.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ParenthesizedExpression.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/PostfixExpression.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/PrefixExpression.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/PrimitiveType.java31
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/QualifiedName.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/QualifiedType.java29
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/RecoveredTypeBinding.java177
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ReturnStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SimpleName.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SimpleType.java29
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SingleMemberAnnotation.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SingleVariableDeclaration.java51
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Statement.java3
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/StringLiteral.java25
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SuperConstructorInvocation.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SuperFieldAccess.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SuperMethodInvocation.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SuperMethodReference.java30
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchCase.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchStatement.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SynchronizedStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TagElement.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TextElement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ThisExpression.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ThrowStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TryStatement.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java157
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeDeclaration.java49
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeDeclarationStatement.java21
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeLiteral.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeMethodReference.java30
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeParameter.java27
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/UnionType.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableBinding.java64
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationExpression.java30
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationFragment.java46
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationStatement.java30
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/WhileStatement.java24
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/WildcardType.java32
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/NaiveASTFlattener.java301
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java301
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java301
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFormatter.java9
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ListRewriteEvent.java18
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/NodeRewriteEvent.java13
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/RewriteEventStore.java9
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/TrackedNodePosition.java6
-rw-r--r--org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetCompiler.java3
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/core/BindingKey.java3
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/core/CompletionRequestorAdapter.java42
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/core/SourceRange.java7
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/core/jdom/DOMFactory.java68
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceJavadocParser.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/AbstractClassFile.java13
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BatchOperation.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryField.java4
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryLambdaExpression.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryLambdaMethod.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryMethod.java4
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java157
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BufferCache.java12
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BufferFactoryWrapper.java3
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClassFile.java4
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java77
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ImportContainer.java8
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ImportDeclaration.java4
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Initializer.java4
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaCorePreferenceModifyListener.java3
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElement.java15
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaProject.java3
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/LambdaExpression.java3
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/LocalVariable.java3
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/OverflowingLRUCache.java14
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageDeclaration.java4
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragment.java4
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java11
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ReconcileWorkingCopyOperation.java3
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ResolvedBinaryField.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ResolvedBinaryMethod.java7
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ResolvedBinaryType.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ResolvedLambdaExpression.java8
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ResolvedSourceField.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ResolvedSourceMethod.java7
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ResolvedSourceType.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceField.java17
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMethod.java11
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java4
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java24
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/UserLibrary.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/UserLibraryClasspathContainer.java12
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/UserLibraryClasspathContainerInitializer.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/AbstractImageBuilder.java5
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Annotation.java15
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/AnnotationComponent.java11
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/AnnotationComponentValue.java48
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/AnnotationDefaultAttribute.java3
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/CommentRecorderParser.java32
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/EnclosingMethodAttribute.java28
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ExtendedAnnotation.java15
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/KeyToSignature.java3
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/MethodParametersAttribute.java9
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ParameterAnnotation.java8
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/RuntimeInvisibleAnnotationsAttribute.java7
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/RuntimeInvisibleParameterAnnotationsAttribute.java8
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/RuntimeInvisibleTypeAnnotationsAttribute.java7
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/RuntimeVisibleAnnotationsAttribute.java8
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/RuntimeVisibleParameterAnnotationsAttribute.java8
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/RuntimeVisibleTypeAnnotationsAttribute.java8
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/SignatureAttribute.java8
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/SimpleDocument.java129
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchMatch.java3
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/HierarchyScope.java12
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaSearchParticipant.java29
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaSearchScope.java15
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaSearchTypeNameMatch.java6
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaWorkspaceScope.java4
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/PathCollector.java3
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/TypeNameMatchRequestorWrapper.java3
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/AndLocator.java4
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/AndPattern.java3
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java4
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/PackageReferenceLocator.java4
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/SecondaryTypeDeclarationPattern.java3
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/SuperTypeReferenceLocator.java4
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/TypeReferenceLocator.java4
235 files changed, 226 insertions, 6495 deletions
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
index 786cfc9332..4687e800a5 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
@@ -1341,13 +1341,6 @@ public final class CompletionEngine
}
- /**
- * One result of the search consists of a new package.
- *
- * NOTE - All package names are presented in their readable form:
- * Package names are in the form "a.b.c".
- * The default package is represented by an empty array.
- */
@Override
public void acceptPackage(char[] packageName) {
@@ -1397,14 +1390,6 @@ public final class CompletionEngine
}
}
- /**
- * One result of the search consists of a new type.
- *
- * NOTE - All package and type names are presented in their readable form:
- * Package names are in the form "a.b.c".
- * Nested type names are in the qualified form "A.I".
- * The default package is represented by an empty array.
- */
@Override
public void acceptType(
char[] packageName,
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/InternalCompletionContext.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/InternalCompletionContext.java
index 48b34e4e13..6a4cb05bbc 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/InternalCompletionContext.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/InternalCompletionContext.java
@@ -11,14 +11,8 @@
package org.eclipse.jdt.internal.codeassist;
import org.eclipse.jdt.core.CompletionContext;
-import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jdt.core.IField;
import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jdt.core.ILocalVariable;
-import org.eclipse.jdt.core.IMember;
-import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.ITypeRoot;
-import org.eclipse.jdt.core.Signature;
import org.eclipse.jdt.core.WorkingCopyOwner;
import org.eclipse.jdt.internal.codeassist.complete.CompletionOnJavadoc;
import org.eclipse.jdt.internal.codeassist.complete.CompletionParser;
@@ -122,28 +116,6 @@ public class InternalCompletionContext extends CompletionContext {
}
}
- /**
- * Returns the innermost enclosing Java element which contains the completion location or <code>null</code> if this element cannot be computed.
- * The returned Java element and all Java elements in the same compilation unit which can be navigated to from the returned Java element are special Java elements:
- * <ul>
- * <li>they are based on the current content of the compilation unit's buffer, they are not the result of a reconcile operation</li>
- * <li>they are not updated if the buffer changes.</li>
- * <li>they do not contain local types which are not visible from the completion location.</li>
- * <li>they do not give information about categories. {@link IMember#getCategories()} will return an empty array</li>
- * </ul>
- *
- * Reasons for returning <code>null</code> include:
- * <ul>
- * <li>the compilation unit no longer exists</li>
- * <li>the completion occurred in a binary type. However this restriction might be relaxed in the future.</li>
- * </ul>
- *
- * @return the innermost enclosing Java element which contains the completion location or <code>null</code> if this element cannot be computed.
- *
- * @exception UnsupportedOperationException if the context is not an extended context
- *
- * @since 3.4
- */
@Override
public IJavaElement getEnclosingElement() {
if (!this.isExtended) throw new UnsupportedOperationException("Operation only supported in extended context"); //$NON-NLS-1$
@@ -153,178 +125,47 @@ public class InternalCompletionContext extends CompletionContext {
return this.extendedContext.getEnclosingElement();
}
- /**
- * Return keys of expected types of a potential completion proposal at the completion position.
- *
- * It's not mandatory to a completion proposal to respect this expectation.
- *
- * @return keys of expected types of a potential completion proposal at the completion position or
- * <code>null</code> if there is no expected types.
- *
- * @see org.eclipse.jdt.core.dom.ASTParser#createASTs(ICompilationUnit[], String[], org.eclipse.jdt.core.dom.ASTRequestor, org.eclipse.core.runtime.IProgressMonitor)
- */
@Override
public char[][] getExpectedTypesKeys() {
return this.expectedTypesKeys;
}
- /**
- * Return signatures of expected types of a potential completion proposal at the completion position.
- *
- * It's not mandatory to a completion proposal to respect this expectation.
- *
- * @return signatures expected types of a potential completion proposal at the completion position or
- * <code>null</code> if there is no expected types.
- *
- * @see Signature
- */
@Override
public char[][] getExpectedTypesSignatures() {
return this.expectedTypesSignatures;
}
- /**
- * Returns the offset position in the source file buffer
- * after which code assist is requested.
- *
- * @return offset position in the source file buffer
- * @since 3.2
- */
@Override
public int getOffset() {
return this.offset;
}
- /**
- * Returns the completed token.
- * This token is either the identifier or Java language keyword
- * or the string literal under, immediately preceding,
- * the original request offset. If the original request offset
- * is not within or immediately after an identifier or keyword or
- * a string literal then the returned value is <code>null</code>.
- *
- * @return completed token or <code>null</code>
- * @since 3.2
- */
@Override
public char[] getToken() {
return this.token;
}
- /**
- * Returns the character index of the end (exclusive) of the subrange
- * in the source file buffer containing the
- * relevant token. When there is no relevant token, the
- * range is empty
- * (<code>getTokenEnd() == getTokenStart() - 1</code>).
- *
- * @return character index of token end position (exclusive)
- * @since 3.2
- */
// TODO (david) https://bugs.eclipse.org/bugs/show_bug.cgi?id=132558
@Override
public int getTokenEnd() {
return this.tokenEnd;
}
- /**
- * Returns the kind of completion token being proposed.
- * <p>
- * The set of different kinds of completion token is
- * expected to change over time. It is strongly recommended
- * that clients do <b>not</b> assume that the kind is one of the
- * ones they know about, and code defensively for the
- * possibility of unexpected future growth.
- * </p>
- *
- * @return the kind; one of the kind constants declared on
- * this class whose name starts with <code>TOKEN_KIND</code>,
- * or possibly a kind unknown to the caller
- * @since 3.2
- */
@Override
public int getTokenKind() {
return this.tokenKind;
}
- /**
- * Returns the location of completion token being proposed.
- * The returned location is a bit mask which can contain some values
- * of the constants declared on this class whose name starts with <code>TL</code>,
- * or possibly values unknown to the caller.
- *
- * <p>
- * The set of different location values is expected to change over time.
- * It is strongly recommended that clients do <b>not</b> assume that
- * the location contains only known value, and code defensively for
- * the possibility of unexpected future growth.
- * </p>
- *
- * @return the location
- *
- * @since 3.4
- */
@Override
public int getTokenLocation() {
return this.tokenLocation;
}
- /**
- * Returns the character index of the start of the
- * subrange in the source file buffer containing the
- * relevant token being completed. This
- * token is either the identifier or Java language keyword
- * under, or immediately preceding, the original request
- * offset. If the original request offset is not within
- * or immediately after an identifier or keyword, then the
- * position returned is original request offset and the
- * token range is empty.
- *
- * @return character index of token start position (inclusive)
- * @since 3.2
- */
@Override
public int getTokenStart() {
return this.tokenStart;
}
- /**
- * Return the elements which are visible from the completion location and which can be assigned to the given type.
- * An element is assignable if its type can be assigned to a variable
- * of the given type, as specified in section 5.2 of <em>The Java Language
- * Specification, Third Edition</em> (JLS3).
- * A visible element is either:
- * <ul>
- * <li>a {@link ILocalVariable} - the element type is {@link ILocalVariable#getTypeSignature()}</li>
- * <li>a {@link IField} - the element type is {@link IField#getTypeSignature()}</li>
- * <li>a {@link IMethod} - the element type is {@link IMethod#getReturnType()}</li>
- * </ul>
- *
- * Returned elements defined in the completed compilation unit are special Java elements:
- * <ul>
- * <li>they are based on the current content of the compilation unit's buffer, they are not the result of a reconcile operation</li>
- * <li>they are not updated if the buffer changes.</li>
- * <li>they do not contain local types which are not visible from the completion location.</li>
- * <li>they do not give information about categories. {@link IMember#getCategories()} will return an empty array</li>
- * </ul>
- *
- * Note the array can be empty if:
- * <ul>
- * <li>the compilation unit no longer exists</li>
- * <li>the completion occurred in a binary type. However this restriction might be relaxed in the future.</li>
- * </ul>
- *
- * @param typeSignature elements which can be assigned to this type are returned.
- * If <code>null</code> there is no constraint on the type of the returned elements.
- *
- * @return elements which are visible from the completion location and which can be assigned to the given type.
- *
- * @exception UnsupportedOperationException if the context is not an extended context
- *
- * @see #isExtended()
- *
- * @since 3.4
- */
@Override
public IJavaElement[] getVisibleElements(String typeSignature) {
if (!this.isExtended) throw new UnsupportedOperationException("Operation only supported in extended context"); //$NON-NLS-1$
@@ -334,56 +175,21 @@ public class InternalCompletionContext extends CompletionContext {
return this.extendedContext.getVisibleElements(typeSignature);
}
- /**
- * Returns whether this completion context is an extended context.
- * Some methods of this context can be used only if this context is an extended context but an extended context consumes more memory.
- *
- * @return <code>true</code> if this completion context is an extended context.
- *
- * @since 3.4
- */
@Override
public boolean isExtended() {
return this.isExtended;
}
- /**
- * Tell user whether completion takes place in a javadoc comment or not.
- *
- * @return boolean true if completion takes place in a javadoc comment, false otherwise.
- * @since 3.2
- */
@Override
public boolean isInJavadoc() {
return this.javadoc != 0;
}
- /**
- * Tell user whether completion takes place in a formal reference of a javadoc tag or not.
- * Tags with formal reference are:
- * <ul>
- * <li>&#64;see</li>
- * <li>&#64;throws</li>
- * <li>&#64;exception</li>
- * <li>{&#64;link Object}</li>
- * <li>{&#64;linkplain Object}</li>
- * <li>{&#64;value} when compiler compliance is set at leats to 1.5</li>
- * </ul>
- *
- * @return boolean true if completion takes place in formal reference of a javadoc tag, false otherwise.
- * @since 3.2
- */
@Override
public boolean isInJavadocFormalReference() {
return (this.javadoc & CompletionOnJavadoc.FORMAL_REFERENCE) != 0;
}
- /**
- * Tell user whether completion takes place in text area of a javadoc comment or not.
- *
- * @return boolean true if completion takes place in a text area of a javadoc comment, false otherwise.
- * @since 3.2
- */
@Override
public boolean isInJavadocText() {
return (this.javadoc & CompletionOnJavadoc.TEXT) != 0;
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/InternalCompletionProposal.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/InternalCompletionProposal.java
index a0a7b163a8..40bc7b18d2 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/InternalCompletionProposal.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/InternalCompletionProposal.java
@@ -15,11 +15,8 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core.CompletionContext;
import org.eclipse.jdt.core.CompletionFlags;
import org.eclipse.jdt.core.CompletionProposal;
-import org.eclipse.jdt.core.CompletionRequestor;
import org.eclipse.jdt.core.Flags;
import org.eclipse.jdt.core.IAccessRule;
-import org.eclipse.jdt.core.ICodeAssist;
-import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.IPackageFragmentRoot;
@@ -468,140 +465,37 @@ public class InternalCompletionProposal extends CompletionProposal {
this.completionLocation = completionLocation;
}
- /**
- * Returns the completion flags relevant in the context, or
- * <code>CompletionFlags.Default</code> if none.
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>FIELD_IMPORT</code> - completion flags
- * of the attribute that is referenced. Completion flags for
- * this proposal kind can only include <code>CompletionFlags.StaticImport</code></li>
- * <li><code>METHOD_IMPORT</code> - completion flags
- * of the attribute that is referenced. Completion flags for
- * this proposal kind can only include <code>CompletionFlags.StaticImport</code></li>
- * <li><code>TYPE_IMPORT</code> - completion flags
- * of the attribute that is referenced. Completion flags for
- * this proposal kind can only include <code>CompletionFlags.StaticImport</code></li>
- * </ul>
- * For other kinds of completion proposals, this method returns
- * <code>CompletionFlags.Default</code>.
- * </p>
- *
- * @return the completion flags, or
- * <code>CompletionFlags.Default</code> if none
- * @see CompletionFlags
- *
- * @since 3.3
- */
@Override
public int getAdditionalFlags() {
return this.additionalFlags;
}
- /**
- * Sets the completion flags relevant in the context.
- * <p>
- * If not set, defaults to none.
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param additionalFlags the completion flags, or
- * <code>CompletionFlags.Default</code> if none
- *
- * @since 3.3
- */
@Override
public void setAdditionalFlags(int additionalFlags) {
this.additionalFlags = additionalFlags;
}
- /**
- * Returns the kind of completion being proposed.
- * <p>
- * The set of different kinds of completion proposals is
- * expected to change over time. It is strongly recommended
- * that clients do <b>not</b> assume that the kind is one of the
- * ones they know about, and code defensively for the
- * possibility of unexpected future growth.
- * </p>
- *
- * @return the kind; one of the kind constants
- * declared on this class, or possibly a kind unknown
- * to the caller
- */
@Override
public int getKind() {
return this.completionKind;
}
- /**
- * Returns the character index in the source file buffer
- * where source completion was requested (the
- * <code>offset</code> parameter to
- * <code>ICodeAssist.codeComplete</code> minus one).
- *
- * @return character index in source file buffer
- * @see ICodeAssist#codeComplete(int,CompletionRequestor)
- */
// TODO (david) https://bugs.eclipse.org/bugs/show_bug.cgi?id=132558
@Override
public int getCompletionLocation() {
return this.completionLocation;
}
- /**
- * Returns the character index of the start of the
- * subrange in the source file buffer containing the
- * relevant token being completed. This
- * token is either the identifier or Java language keyword
- * under, or immediately preceding, the original request
- * offset. If the original request offset is not within
- * or immediately after an identifier or keyword, then the
- * position returned is original request offset and the
- * token range is empty.
- *
- * @return character index of token start position (inclusive)
- */
@Override
public int getTokenStart() {
return this.tokenStart;
}
- /**
- * Returns the character index of the end (exclusive) of the subrange
- * in the source file buffer containing the
- * relevant token. When there is no relevant token, the
- * range is empty
- * (<code>getEndToken() == getStartToken()</code>).
- *
- * @return character index of token end position (exclusive)
- */
@Override
public int getTokenEnd() {
return this.tokenEnd;
}
- /**
- * Sets the character indices of the subrange in the
- * source file buffer containing the relevant token being
- * completed. This token is either the identifier or
- * Java language keyword under, or immediately preceding,
- * the original request offset. If the original request
- * offset is not within or immediately after an identifier
- * or keyword, then the source range begins at original
- * request offset and is empty.
- * <p>
- * If not set, defaults to empty subrange at [0,0).
- * </p>
- *
- * @param startIndex character index of token start position (inclusive)
- * @param endIndex character index of token end position (exclusive)
- */
@Override
public void setTokenRange(int startIndex, int endIndex) {
if (startIndex < 0 || endIndex < startIndex) {
@@ -611,17 +505,6 @@ public class InternalCompletionProposal extends CompletionProposal {
this.tokenEnd = endIndex;
}
- /**
- * Returns the proposed sequence of characters to insert into the
- * source file buffer, replacing the characters at the specified
- * source range. The string can be arbitrary; for example, it might
- * include not only the name of a method but a set of parentheses.
- * <p>
- * The client must not modify the array returned.
- * </p>
- *
- * @return the completion string
- */
@Override
public char[] getCompletion() {
if(this.completionKind == METHOD_DECLARATION) {
@@ -657,85 +540,21 @@ public class InternalCompletionProposal extends CompletionProposal {
return this.completion;
}
- /**
- * Sets the proposed sequence of characters to insert into the
- * source file buffer, replacing the characters at the specified
- * source range. The string can be arbitrary; for example, it might
- * include not only the name of a method but a set of parentheses.
- * <p>
- * If not set, defaults to an empty character array.
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param completion the completion string
- */
@Override
public void setCompletion(char[] completion) {
this.completion = completion;
}
- /**
- * Returns the character index of the start of the
- * subrange in the source file buffer to be replaced
- * by the completion string. If the subrange is empty
- * (<code>getReplaceEnd() == getReplaceStart()</code>),
- * the completion string is to be inserted at this
- * index.
- * <p>
- * Note that while the token subrange is precisely
- * specified, the replacement range is loosely
- * constrained and may not bear any direct relation
- * to the original request offset. For example,
- * it would be possible for a type completion to
- * propose inserting an import declaration at the
- * top of the compilation unit; or the completion
- * might include trailing parentheses and
- * punctuation for a method completion.
- * </p>
- *
- * @return replacement start position (inclusive)
- */
@Override
public int getReplaceStart() {
return this.replaceStart;
}
- /**
- * Returns the character index of the end of the
- * subrange in the source file buffer to be replaced
- * by the completion string. If the subrange is empty
- * (<code>getReplaceEnd() == getReplaceStart()</code>),
- * the completion string is to be inserted at this
- * index.
- *
- * @return replacement end position (exclusive)
- */
@Override
public int getReplaceEnd() {
return this.replaceEnd;
}
- /**
- * Sets the character indices of the subrange in the
- * source file buffer to be replaced by the completion
- * string. If the subrange is empty
- * (<code>startIndex == endIndex</code>),
- * the completion string is to be inserted at this
- * index.
- * <p>
- * If not set, defaults to empty subrange at [0,0).
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param startIndex character index of replacement start position (inclusive)
- * @param endIndex character index of replacement end position (exclusive)
- */
@Override
public void setReplaceRange(int startIndex, int endIndex) {
if (startIndex < 0 || endIndex < startIndex) {
@@ -745,28 +564,11 @@ public class InternalCompletionProposal extends CompletionProposal {
this.replaceEnd = endIndex;
}
- /**
- * Returns the relative relevance rating of this proposal.
- *
- * @return relevance rating of this proposal; ratings are positive; higher means better
- */
@Override
public int getRelevance() {
return this.relevance;
}
- /**
- * Sets the relative relevance rating of this proposal.
- * <p>
- * If not set, defaults to the lowest possible rating (1).
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param rating relevance rating of this proposal; ratings are positive; higher means better
- */
@Override
public void setRelevance(int rating) {
if (rating <= 0) {
@@ -775,172 +577,31 @@ public class InternalCompletionProposal extends CompletionProposal {
this.relevance = rating;
}
- /**
- * Returns the type signature or package name of the relevant
- * declaration in the context, or <code>null</code> if none.
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>ANNOTATION_ATTRIBUT_REF</code> - type signature
- * of the annotation that declares the attribute that is referenced</li>
- * <li><code>ANONYMOUS_CLASS_DECLARATION</code> - type signature
- * of the type that is being subclassed or implemented</li>
- * <li><code>FIELD_IMPORT</code> - type signature
- * of the type that declares the field that is imported</li>
- * <li><code>FIELD_REF</code> - type signature
- * of the type that declares the field that is referenced</li>
- * <li><code>FIELD_REF_WITH_CASTED_RECEIVER</code> - type signature
- * of the type that declares the field that is referenced</li>
- * <li><code>METHOD_IMPORT</code> - type signature
- * of the type that declares the method that is imported</li>
- * <li><code>METHOD_REF</code> - type signature
- * of the type that declares the method that is referenced</li>
- * <li><code>METHOD_REF_WITH_CASTED_RECEIVER</code> - type signature
- * of the type that declares the method that is referenced</li>
- * <li><code>METHOD_DECLARATION</code> - type signature
- * of the type that declares the method that is being
- * implemented or overridden</li>
- * <li><code>PACKAGE_REF</code> - dot-based package
- * name of the package that is referenced</li>
- * <li><code>TYPE_IMPORT</code> - dot-based package
- * name of the package containing the type that is imported</li>
- * <li><code>TYPE_REF</code> - dot-based package
- * name of the package containing the type that is referenced</li>
- * <li><code>POTENTIAL_METHOD_DECLARATION</code> - type signature
- * of the type that declares the method that is being created</li>
- * </ul>
- * For kinds of completion proposals, this method returns
- * <code>null</code>. Clients must not modify the array
- * returned.
- * </p>
- *
- * @return a type signature or a package name (depending
- * on the kind of completion), or <code>null</code> if none
- * @see Signature
- */
@Override
public char[] getDeclarationSignature() {
return this.declarationSignature;
}
- /**
- * Returns the key of the relevant
- * declaration in the context, or <code>null</code> if none.
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>ANONYMOUS_CLASS_DECLARATION</code> - key
- * of the type that is being subclassed or implemented</li>
- * <li><code>METHOD_DECLARATION</code> - key
- * of the type that declares the method that is being
- * implemented or overridden</li>
- * </ul>
- * For kinds of completion proposals, this method returns
- * <code>null</code>. Clients must not modify the array
- * returned.
- * </p>
- *
- * @return a key, or <code>null</code> if none
- * @see org.eclipse.jdt.core.dom.ASTParser#createASTs(ICompilationUnit[], String[], org.eclipse.jdt.core.dom.ASTRequestor, IProgressMonitor)
- * @since 3.1
- */
@Override
public char[] getDeclarationKey() {
return this.declarationKey;
}
- /**
- * Sets the type or package or module(1.9) signature of the relevant
- * declaration in the context, or <code>null</code> if none.
- * <p>
- * If not set, defaults to none.
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param signature the type or package or module(1.9) signature, or
- * <code>null</code> if none
- */
@Override
public void setDeclarationSignature(char[] signature) {
this.declarationSignature = signature;
}
- /**
- * Sets the type or package key of the relevant
- * declaration in the context, or <code>null</code> if none.
- * <p>
- * If not set, defaults to none.
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param key the type or package key, or
- * <code>null</code> if none
- * @since 3.1
- */
@Override
public void setDeclarationKey(char[] key) {
this.declarationKey = key;
}
- /**
- * Returns the simple name of the method, field,
- * member, or variable relevant in the context, or
- * <code>null</code> if none.
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>ANNOTATION_ATTRIBUT_REF</code> - the name of the attribute</li>
- * <li><code>FIELD_IMPORT</code> - the name of the field</li>
- * <li><code>FIELD_REF</code> - the name of the field</li>
- * <li><code>FIELD_REF_WITH_CASTED_RECEIVER</code> - the name of the field</li>
- * <li><code>KEYWORD</code> - the keyword</li>
- * <li><code>LABEL_REF</code> - the name of the label</li>
- * <li><code>LOCAL_VARIABLE_REF</code> - the name of the local variable</li>
- * <li><code>METHOD_IMPORT</code> - the name of the method</li>
- * <li><code>METHOD_REF</code> - the name of the method (the type simple name for constructor)</li>
- * <li><code>METHOD_REF_WITH_CASTED_RECEIVER</code> - the name of the method</li>
- * <li><code>METHOD_DECLARATION</code> - the name of the method (the type simple name for constructor)</li>
- * <li><code>VARIABLE_DECLARATION</code> - the name of the variable</li>
- * <li><code>POTENTIAL_METHOD_DECLARATION</code> - the name of the method</li>
- * </ul>
- * For kinds of completion proposals, this method returns
- * <code>null</code>. Clients must not modify the array
- * returned.
- * </p>
- *
- * @return the keyword, field, method, local variable, or member
- * name, or <code>null</code> if none
- */
@Override
public char[] getName() {
return this.name;
}
-
- /**
- * Sets the simple name of the method (type simple name for constructor), field,
- * member, or variable relevant in the context, or
- * <code>null</code> if none.
- * <p>
- * If not set, defaults to none.
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param name the keyword, field, method, local variable,
- * or member name, or <code>null</code> if none
- */
@Override
public void setName(char[] name) {
this.name = name;
@@ -985,77 +646,11 @@ public class InternalCompletionProposal extends CompletionProposal {
this.binding = binding;
}
- /**
- * Returns the signature of the method or type
- * relevant in the context, or <code>null</code> if none.
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>ANNOTATION_ATTRIBUT_REF</code> - the type signature
- * of the referenced attribute's type</li>
- * <li><code>ANONYMOUS_CLASS_DECLARATION</code> - method signature
- * of the constructor that is being invoked</li>
- * <li><code>FIELD_IMPORT</code> - the type signature
- * of the referenced field's type</li>
- * <li><code>FIELD_REF</code> - the type signature
- * of the referenced field's type</li>
- * <li><code>FIELD_REF_WITH_CASTED_RECEIVER</code> - the type signature
- * of the referenced field's type</li>
- * <li><code>LOCAL_VARIABLE_REF</code> - the type signature
- * of the referenced local variable's type</li>
- * <li><code>METHOD_IMPORT</code> - method signature
- * of the method that is imported</li>
- * <li><code>METHOD_REF</code> - method signature
- * of the method that is referenced</li>
- * <li><code>METHOD_REF_WITH_CASTED_RECEIVER</code> - method signature
- * of the method that is referenced</li>
- * <li><code>METHOD_DECLARATION</code> - method signature
- * of the method that is being implemented or overridden</li>
- * <li><code>TYPE_IMPORT</code> - type signature
- * of the type that is imported</li>
- * <li><code>TYPE_REF</code> - type signature
- * of the type that is referenced</li>
- * <li><code>VARIABLE_DECLARATION</code> - the type signature
- * of the type of the variable being declared</li>
- * <li><code>POTENTIAL_METHOD_DECLARATION</code> - method signature
- * of the method that is being created</li>
- * </ul>
- * For kinds of completion proposals, this method returns
- * <code>null</code>. Clients must not modify the array
- * returned.
- * </p>
- *
- * @return the signature, or <code>null</code> if none
- * @see Signature
- */
@Override
public char[] getSignature() {
return this.signature;
}
- /**
- * Returns the key relevant in the context,
- * or <code>null</code> if none.
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>ANONYMOUS_CLASS_DECLARATION</code> - method key
- * of the constructor that is being invoked, or <code>null</code> if
- * the declaring type is an interface</li>
- * <li><code>METHOD_DECLARATION</code> - method key
- * of the method that is being implemented or overridden</li>
- * </ul>
- * For kinds of completion proposals, this method returns
- * <code>null</code>. Clients must not modify the array
- * returned.
- * </p>
- *
- * @return the key, or <code>null</code> if none
- * @see org.eclipse.jdt.core.dom.ASTParser#createASTs(ICompilationUnit[], String[], org.eclipse.jdt.core.dom.ASTRequestor, IProgressMonitor)
- * @since 3.1
- */
@Override
public char[] getKey() {
return this.key;
@@ -1266,123 +861,21 @@ public class InternalCompletionProposal extends CompletionProposal {
// return this.parameterTypeNames;
// }
- /**
- * Sets the signature of the method, field type, member type,
- * relevant in the context, or <code>null</code> if none.
- * <p>
- * If not set, defaults to none.
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param signature the signature, or <code>null</code> if none
- */
@Override
public void setSignature(char[] signature) {
this.signature = signature;
}
- /**
- * Sets the key of the method, field type, member type,
- * relevant in the context, or <code>null</code> if none.
- * <p>
- * If not set, defaults to none.
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param key the key, or <code>null</code> if none
- * @since 3.1
- */
@Override
public void setKey(char[] key) {
this.key = key;
}
- /**
- * Returns the modifier flags relevant in the context, or
- * <code>Flags.AccDefault</code> if none.
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>ANNOTATION_ATTRIBUT_REF</code> - modifier flags
- * of the attribute that is referenced;
- * <li><code>ANONYMOUS_CLASS_DECLARATION</code> - modifier flags
- * of the constructor that is referenced</li>
- * <li><code>FIELD_IMPORT</code> - modifier flags
- * of the field that is imported.</li>
- * <li><code>FIELD_REF</code> - modifier flags
- * of the field that is referenced;
- * <code>Flags.AccEnum</code> can be used to recognize
- * references to enum constants
- * </li>
- * <li><code>FIELD_REF_WITH_CASTED_RECEIVER</code> - modifier flags
- * of the field that is referenced.
- * </li>
- * <li><code>KEYWORD</code> - modifier flag
- * corresponding to the modifier keyword</li>
- * <li><code>LOCAL_VARIABLE_REF</code> - modifier flags
- * of the local variable that is referenced</li>
- * <li><code>METHOD_IMPORT</code> - modifier flags
- * of the method that is imported;
- * </li>
- * <li><code>METHOD_REF</code> - modifier flags
- * of the method that is referenced;
- * <code>Flags.AccAnnotation</code> can be used to recognize
- * references to annotation type members
- * </li>
- * <li><code>METHOD_REF_WITH_CASTED_RECEIVER</code> - modifier flags
- * of the method that is referenced.
- * </li>
- * <li><code>METHOD_DECLARATION</code> - modifier flags
- * for the method that is being implemented or overridden</li>
- * <li><code>TYPE_IMPORT</code> - modifier flags
- * of the type that is imported; <code>Flags.AccInterface</code>
- * can be used to recognize references to interfaces,
- * <code>Flags.AccEnum</code> enum types,
- * and <code>Flags.AccAnnotation</code> annotation types</li>
- * <li><code>TYPE_REF</code> - modifier flags
- * of the type that is referenced; <code>Flags.AccInterface</code>
- * can be used to recognize references to interfaces,
- * <code>Flags.AccEnum</code> enum types,
- * and <code>Flags.AccAnnotation</code> annotation types
- * </li>
- * <li><code>VARIABLE_DECLARATION</code> - modifier flags
- * for the variable being declared</li>
- * <li><code>POTENTIAL_METHOD_DECLARATION</code> - modifier flags
- * for the method that is being created</li>
- * </ul>
- * For other kinds of completion proposals, this method returns
- * <code>Flags.AccDefault</code>.
- * </p>
- *
- * @return the modifier flags, or
- * <code>Flags.AccDefault</code> if none
- * @see Flags
- */
@Override
public int getFlags() {
return this.flags;
}
- /**
- * Sets the modifier flags relevant in the context.
- * <p>
- * If not set, defaults to none.
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param flags the modifier flags, or
- * <code>Flags.AccDefault</code> if none
- */
@Override
public void setFlags(int flags) {
this.flags = flags;
@@ -1392,98 +885,16 @@ public class InternalCompletionProposal extends CompletionProposal {
this.hasNoParameterNamesFromIndex = hasNoParameterNamesFromIndex;
}
- /**
- * Returns the required completion proposals.
- * The proposal can be apply only if these required completion proposals are also applied.
- * If the required proposal aren't applied the completion could create completion problems.
- *
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>FIELD_REF</code> - The allowed required proposals for this kind are:
- * <ul>
- * <li><code>TYPE_REF</code></li>
- * <li><code>TYPE_IMPORT</code></li>
- * <li><code>FIELD_IMPORT</code></li>
- * </ul>
- * </li>
- * <li><code>METHOD_REF</code> - The allowed required proposals for this kind are:
- * <ul>
- * <li><code>TYPE_REF</code></li>
- * <li><code>TYPE_IMPORT</code></li>
- * <li><code>METHOD_IMPORT</code></li>
- * </ul>
- * </li>
- * </li>
- * <li><code>TYPE_REF</code> - The allowed required proposals for this kind are:
- * <ul>
- * <li><code>TYPE_REF</code></li>
- * </ul>
- * </li>
- * </ul>
- * </p>
- * <p>
- * Other kinds of required proposals will be returned in the future, therefore clients of this
- * API must allow with {@link CompletionRequestor#setAllowsRequiredProposals(int, int, boolean)}
- * only kinds which are in this list to avoid unexpected results in the future.
- * </p>
- * <p>
- * A required proposal of a given kind is proposed even if {@link CompletionRequestor#isIgnored(int)}
- * return <code>true</code> for that kind.
- * </p>
- * <p>
- * A required completion proposal cannot have required completion proposals.
- * </p>
- *
- * @return the required completion proposals, or <code>null</code> if none.
- *
- * @see CompletionRequestor#setAllowsRequiredProposals(int, int,boolean)
- *
- * @since 3.3
- */
@Override
public CompletionProposal[] getRequiredProposals() {
return this.requiredProposals;
}
-
- /**
- * Sets the list of required completion proposals, or <code>null</code> if none.
- * <p>
- * If not set, defaults to none.
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param proposals the list of required completion proposals, or
- * <code>null</code> if none
- * @since 3.3
- */
@Override
public void setRequiredProposals(CompletionProposal[] proposals) {
this.requiredProposals = proposals;
}
- /**
- * Finds the method parameter names.
- * This information is relevant to method reference (and
- * method declaration proposals). Returns <code>null</code>
- * if not available or not relevant.
- * <p>
- * The client must not modify the array returned.
- * </p>
- * <p>
- * <b>Note that this is an expensive thing to compute, which may require
- * parsing Java source files, etc. Use sparingly.</b>
- * </p>
- *
- * @param monitor the progress monitor, or <code>null</code> if none
- * @return the parameter names, or <code>null</code> if none
- * or not available or not relevant
- */
@Override
public char[][] findParameterNames(IProgressMonitor monitor) {
if (!this.parameterNamesComputed) {
@@ -1579,66 +990,17 @@ public class InternalCompletionProposal extends CompletionProposal {
return this.parameterNames;
}
- /**
- * Sets the method parameter names.
- * This information is relevant to method reference (and
- * method declaration proposals).
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param parameterNames the parameter names, or <code>null</code> if none
- */
@Override
public void setParameterNames(char[][] parameterNames) {
this.parameterNames = parameterNames;
this.parameterNamesComputed = true;
}
- /**
- * Returns the accessibility of the proposal.
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>TYPE_REF</code> - accessibility of the type</li>
- * </ul>
- * For these kinds of completion proposals, this method returns
- * {@link IAccessRule#K_ACCESSIBLE} or {@link IAccessRule#K_DISCOURAGED}
- * or {@link IAccessRule#K_NON_ACCESSIBLE}.
- * By default this method return {@link IAccessRule#K_ACCESSIBLE}.
- * </p>
- *
- * @see IAccessRule
- *
- * @return the accessibility of the proposal
- *
- * @since 3.1
- */
@Override
public int getAccessibility() {
return this.accessibility;
}
- /**
- * Returns whether this proposal is a constructor.
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>METHOD_REF</code> - return <code>true</code>
- * if the referenced method is a constructor</li>
- * <li><code>METHOD_DECLARATION</code> - return <code>true</code>
- * if the declared method is a constructor</li>
- * </ul>
- * For kinds of completion proposals, this method returns
- * <code>false</code>.
- * </p>
- *
- * @return <code>true</code> if the proposal is a constructor.
- * @since 3.1
- */
@Override
public boolean isConstructor() {
return this.isConstructor;
@@ -1648,118 +1010,26 @@ public class InternalCompletionProposal extends CompletionProposal {
private int receiverEnd;
private char[] receiverSignature;
- /**
- * Returns the type signature or package name of the relevant
- * receiver in the context, or <code>null</code> if none.
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>FIELD_REF_WITH_CASTED_RECEIVER</code> - type signature
- * of the type that cast the receiver of the field that is referenced</li>
- * <li><code>METHOD_REF_WITH_CASTED_RECEIVER</code> - type signature
- * of the type that cast the receiver of the method that is referenced</li>
- * </ul>
- * For kinds of completion proposals, this method returns
- * <code>null</code>. Clients must not modify the array
- * returned.
- * </p>
- *
- * @return a type signature or a package name (depending
- * on the kind of completion), or <code>null</code> if none
- * @see Signature
- *
- * @since 3.4
- */
@Override
public char[] getReceiverSignature() {
return this.receiverSignature;
}
- /**
- * Returns the character index of the start of the
- * subrange in the source file buffer containing the
- * relevant receiver of the member being completed. This
- * receiver is an expression.
- *
- * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>FIELD_REF_WITH_CASTED_RECEIVER</code></li>
- * <li><code>METHOD_REF_WITH_CASTED_RECEIVER</code></li>
- * </ul>
- * For kinds of completion proposals, this method returns <code>0</code>.
- * </p>
- *
- * @return character index of receiver start position (inclusive)
- *
- * @since 3.4
- */
@Override
public int getReceiverStart() {
return this.receiverStart;
}
- /**
- * Returns the character index of the end (exclusive) of the subrange
- * in the source file buffer containing the
- * relevant receiver of the member being completed.
- *
- * * <p>
- * This field is available for the following kinds of
- * completion proposals:
- * <ul>
- * <li><code>FIELD_REF_WITH_CASTED_RECEIVER</code></li>
- * <li><code>METHOD_REF_WITH_CASTED_RECEIVER</code></li>
- * </ul>
- * For kinds of completion proposals, this method returns <code>0</code>.
- * </p>
- *
- * @return character index of receiver end position (exclusive)
- *
- * @since 3.4
- */
@Override
public int getReceiverEnd() {
return this.receiverEnd;
}
- /**
- * Sets the type or package signature of the relevant
- * receiver in the context, or <code>null</code> if none.
- * <p>
- * If not set, defaults to none.
- * </p>
- * <p>
- * The completion engine creates instances of this class and sets
- * its properties; this method is not intended to be used by other clients.
- * </p>
- *
- * @param signature the type or package signature, or
- * <code>null</code> if none
- *
- * @since 3.4
- */
@Override
public void setReceiverSignature(char[] signature) {
this.receiverSignature = signature;
}
- /**
- * Sets the character indices of the subrange in the
- * source file buffer containing the relevant receiver
- * of the member being completed.
- *
- * <p>
- * If not set, defaults to empty subrange at [0,0).
- * </p>
- *
- * @param startIndex character index of receiver start position (inclusive)
- * @param endIndex character index of receiver end position (exclusive)
- *
- * @since 3.4
- */
@Override
public void setReceiverRange(int startIndex, int endIndex) {
this.receiverStart = startIndex;
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
index af88d090a0..05b1f45f1c 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
@@ -465,14 +465,6 @@ public final class SelectionEngine extends Engine implements ISearchRequestor {
}
}
- /**
- * One result of the search consists of a new package.
- * @param packageName char[]
- *
- * NOTE - All package names are presented in their readable form:
- * Package names are in the form "a.b.c".
- * The default package is represented by an empty array.
- */
@Override
public void acceptPackage(char[] packageName) {
// implementation of interface method
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java
index 556b6d0bba..e200bd812b 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java
@@ -543,9 +543,6 @@ public class CompletionJavadocParser extends JavadocParser {
return valid;
}
- /* (non-Javadoc)
- * @see org.eclipse.jdt.internal.compiler.parser.AbstractCommentParser#parseReference()
- */
@Override
protected boolean parseReference() throws InvalidInputException {
boolean completed = this.completionNode != null;
@@ -556,9 +553,6 @@ public class CompletionJavadocParser extends JavadocParser {
return valid;
}
- /*(non-Javadoc)
- * @see org.eclipse.jdt.internal.compiler.parser.AbstractCommentParser#parseTag(int)
- */
@Override
protected boolean parseTag(int previousPosition) throws InvalidInputException {
int startPosition = this.inlineTagStarted ? this.inlineTagStart : previousPosition;
@@ -583,9 +577,6 @@ public class CompletionJavadocParser extends JavadocParser {
return valid;
}
- /* (non-Javadoc)
- * @see org.eclipse.jdt.internal.compiler.parser.AbstractCommentParser#parseThrows()
- */
@Override
protected boolean parseThrows() {
try {
@@ -795,9 +786,6 @@ public class CompletionJavadocParser extends JavadocParser {
}
}
- /* (non-Javadoc)
- * @see org.eclipse.jdt.internal.compiler.parser.AbstractCommentParser#readToken()
- */
@Override
protected int readToken() throws InvalidInputException {
int token = super.readToken();
@@ -923,9 +911,6 @@ public class CompletionJavadocParser extends JavadocParser {
}
}
- /* (non-Javadoc)
- * @see org.eclipse.jdt.internal.compiler.parser.AbstractCommentParser#verifySpaceOrEndComment()
- */
@Override
protected boolean verifySpaceOrEndComment() {
CompletionScanner completionScanner = (CompletionScanner) this.scanner;
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionOnJavadocAllocationExpression.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionOnJavadocAllocationExpression.java
index 1e801150a1..a0fdacaaa5 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionOnJavadocAllocationExpression.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionOnJavadocAllocationExpression.java
@@ -31,9 +31,6 @@ public class CompletionOnJavadocAllocationExpression extends JavadocAllocationEx
this.completionFlags |= flags;
}
- /**
- * @param flags The completionFlags to set.
- */
@Override
public void addCompletionFlags(int flags) {
this.completionFlags |= flags;
@@ -55,19 +52,11 @@ public class CompletionOnJavadocAllocationExpression extends JavadocAllocationEx
return (this.completionFlags & FORMAL_REFERENCE) != 0;
}
- /**
- * Get completion node flags.
- *
- * @return int Flags of the javadoc completion node.
- */
@Override
public int getCompletionFlags() {
return this.completionFlags;
}
- /* (non-Javadoc)
- * @see org.eclipse.jdt.internal.compiler.ast.AllocationExpression#printExpression(int, java.lang.StringBuffer)
- */
@Override
public StringBuffer printExpression(int indent, StringBuffer output) {
output.append("<CompleteOnJavadocAllocationExpression:"); //$NON-NLS-1$
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionOnJavadocFieldReference.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionOnJavadocFieldReference.java
index 5e606d1610..65d1669dd6 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionOnJavadocFieldReference.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionOnJavadocFieldReference.java
@@ -50,9 +50,6 @@ public class CompletionOnJavadocFieldReference extends JavadocFieldReference imp
this.tagValue = msgSend.tagValue;
}
- /**
- * @param flags The completionFlags to set.
- */
@Override
public void addCompletionFlags(int flags) {
this.completionFlags |= flags;
@@ -74,19 +71,11 @@ public class CompletionOnJavadocFieldReference extends JavadocFieldReference imp
return (this.completionFlags & FORMAL_REFERENCE) != 0;
}
- /**
- * Get completion node flags.
- *
- * @return int Flags of the javadoc completion node.
- */
@Override
public int getCompletionFlags() {
return this.completionFlags;
}
- /* (non-Javadoc)
- * @see org.eclipse.jdt.internal.compiler.ast.JavadocFieldReference#internalResolveType(org.eclipse.jdt.internal.compiler.lookup.Scope)
- */
@Override
protected TypeBinding internalResolveType(Scope scope) {
@@ -105,9 +94,6 @@ public class CompletionOnJavadocFieldReference extends JavadocFieldReference imp
return null;
}
- /* (non-Javadoc)
- * @see org.eclipse.jdt.internal.compiler.ast.JavadocFieldReference#printExpression(int, java.lang.StringBuffer)
- */
@Override
public StringBuffer printExpression(int indent, StringBuffer output) {
output.append("<CompleteOnJavadocFieldReference:"); //$NON-NLS-1$
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionOnJavadocMessageSend.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionOnJavadocMessageSend.java