protected int matchMethod(MethodBinding method, boolean skipImpossibleArg) { [...] // verify each parameter for (int i = 0; i < parameterCount; i++) { TypeBinding argType = method.parameters[i]; int newLevel = IMPOSSIBLE_MATCH; if (argType.isMemberType()) { // only compare source name for member type (bug 41018) newLevel = CharOperation.match(this.pattern.parameterSimpleNames[i], argType.sourceName(), this.isCaseSensitive) ? ACCURATE_MATCH : IMPOSSIBLE_MATCH; } else { // TODO (frederic) use this call to refine accuracy on parameter types // newLevel = resolveLevelForType(this.pattern.parameterSimpleNames[i], this.pattern.parameterQualifications[i], this.pattern.parametersTypeArguments[i], 0, argType); newLevel = resolveLevelForType(this.pattern.parameterSimpleNames[i], this.pattern.parameterQualifications[i], argType); [...] } } [...] }
public void javadocDeprecatedType(TypeBinding type, ASTNode location, int modifiers) { if (location == null) return; // 1G828DN - no type ref for synthetic arguments int severity = computeSeverity(IProblem.JavadocUsingDeprecatedType); if (severity == ProblemSeverities.Ignore) return; if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) { if (type.isMemberType() && type instanceof ReferenceBinding && !javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, ((ReferenceBinding)type).modifiers)) { this.handle(IProblem.JavadocHiddenReference, NoArgument, NoArgument, location.sourceStart, location.sourceEnd); } else { this.handle( IProblem.JavadocUsingDeprecatedType, new String[] {new String(type.readableName())}, new String[] {new String(type.shortReadableName())}, severity, location.sourceStart, location.sourceEnd); } } } public void javadocDuplicatedParamTag(char[] token, int sourceStart, int sourceEnd, int modifiers) {
public void javadocDeprecatedType(TypeBinding type, ASTNode location, int modifiers, int index) { if (location == null) return; // 1G828DN - no type ref for synthetic arguments int severity = computeSeverity(IProblem.JavadocUsingDeprecatedType); if (severity == ProblemSeverities.Ignore) return; if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) { if (type.isMemberType() && type instanceof ReferenceBinding && !javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, ((ReferenceBinding)type).modifiers)) { this.handle(IProblem.JavadocHiddenReference, NoArgument, NoArgument, location.sourceStart, location.sourceEnd); } else { this.handle( IProblem.JavadocUsingDeprecatedType, new String[] {new String(type.readableName())}, new String[] {new String(type.shortReadableName())}, severity, location.sourceStart, nodeSourceEnd(null, location, index)); } } } public void javadocDuplicatedParamTag(char[] token, int sourceStart, int sourceEnd, int modifiers) {
public void javadocDeprecatedType(TypeBinding type, ASTNode location, int modifiers, int index) { if (location == null) return; // 1G828DN - no type ref for synthetic arguments int severity = computeSeverity(IProblem.JavadocUsingDeprecatedType); if (severity == ProblemSeverities.Ignore) return; if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) { if (type.isMemberType() && type instanceof ReferenceBinding && !javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, ((ReferenceBinding)type).modifiers)) { this.handle(IProblem.JavadocHiddenReference, NoArgument, NoArgument, location.sourceStart, location.sourceEnd); } else { this.handle( IProblem.JavadocUsingDeprecatedType, new String[] {new String(type.readableName())}, new String[] {new String(type.shortReadableName())}, severity, location.sourceStart, nodeSourceEnd(null, location, index)); } } } public void javadocDuplicatedParamTag(char[] token, int sourceStart, int sourceEnd, int modifiers) {
public void javadocDeprecatedType(TypeBinding type, ASTNode location, int modifiers, int index) { if (location == null) return; // 1G828DN - no type ref for synthetic arguments int severity = computeSeverity(IProblem.JavadocUsingDeprecatedType); if (severity == ProblemSeverities.Ignore) return; if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) { if (type.isMemberType() && type instanceof ReferenceBinding && !javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, ((ReferenceBinding)type).modifiers)) { this.handle(IProblem.JavadocHiddenReference, NoArgument, NoArgument, location.sourceStart, location.sourceEnd); } else { this.handle( IProblem.JavadocUsingDeprecatedType, new String[] {new String(type.readableName())}, new String[] {new String(type.shortReadableName())}, severity, location.sourceStart, nodeSourceEnd(null, location, index)); } } } public void javadocDuplicatedParamTag(char[] token, int sourceStart, int sourceEnd, int modifiers) {
public void javadocDeprecatedType(TypeBinding type, ASTNode location, int modifiers, int index) { if (location == null) return; // 1G828DN - no type ref for synthetic arguments int severity = computeSeverity(IProblem.JavadocUsingDeprecatedType); if (severity == ProblemSeverities.Ignore) return; if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) { if (type.isMemberType() && type instanceof ReferenceBinding && !javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, ((ReferenceBinding)type).modifiers)) { this.handle(IProblem.JavadocHiddenReference, NoArgument, NoArgument, location.sourceStart, location.sourceEnd); } else { this.handle( IProblem.JavadocUsingDeprecatedType, new String[] {new String(type.readableName())}, new String[] {new String(type.shortReadableName())}, severity, location.sourceStart, nodeSourceEnd(null, location, index)); } } } public void javadocDuplicatedParamTag(char[] token, int sourceStart, int sourceEnd, int modifiers) {
public void javadocDeprecatedType(TypeBinding type, ASTNode location, int modifiers, int index) { if (location == null) return; // 1G828DN - no type ref for synthetic arguments int severity = computeSeverity(IProblem.JavadocUsingDeprecatedType); if (severity == ProblemSeverities.Ignore) return; if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) { if (type.isMemberType() && type instanceof ReferenceBinding && !javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, ((ReferenceBinding)type).modifiers)) { this.handle(IProblem.JavadocHiddenReference, NoArgument, NoArgument, location.sourceStart, location.sourceEnd); } else { this.handle( IProblem.JavadocUsingDeprecatedType, new String[] {new String(type.readableName())}, new String[] {new String(type.shortReadableName())}, severity, location.sourceStart, nodeSourceEnd(null, location, index)); } } } public void javadocDuplicatedParamTag(char[] token, int sourceStart, int sourceEnd, int modifiers) {
public void javadocDeprecatedType(TypeBinding type, ASTNode location, int modifiers, int index) { if (location == null) return; // 1G828DN - no type ref for synthetic arguments int severity = computeSeverity(IProblem.JavadocUsingDeprecatedType); if (severity == ProblemSeverities.Ignore) return; if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) { if (type.isMemberType() && type instanceof ReferenceBinding && !javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, ((ReferenceBinding)type).modifiers)) { this.handle(IProblem.JavadocHiddenReference, NoArgument, NoArgument, location.sourceStart, location.sourceEnd); } else { this.handle( IProblem.JavadocUsingDeprecatedType, new String[] {new String(type.readableName())}, new String[] {new String(type.shortReadableName())}, severity, location.sourceStart, nodeSourceEnd(null, location, index)); } } } public void javadocDuplicatedParamTag(char[] token, int sourceStart, int sourceEnd, int modifiers) {
public void javadocDeprecatedType(TypeBinding type, ASTNode location, int modifiers, int index) { if (location == null) return; // 1G828DN - no type ref for synthetic arguments int severity = computeSeverity(IProblem.JavadocUsingDeprecatedType); if (severity == ProblemSeverities.Ignore) return; if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) { if (type.isMemberType() && type instanceof ReferenceBinding && !javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, ((ReferenceBinding)type).modifiers)) { this.handle(IProblem.JavadocHiddenReference, NoArgument, NoArgument, location.sourceStart, location.sourceEnd); } else { this.handle( IProblem.JavadocUsingDeprecatedType, new String[] {new String(type.readableName())}, new String[] {new String(type.shortReadableName())}, severity, location.sourceStart, nodeSourceEnd(null, location, index)); } } } public void javadocDuplicatedParamTag(char[] token, int sourceStart, int sourceEnd, int modifiers) {
public void javadocDeprecatedType(TypeBinding type, ASTNode location, int modifiers, int index) { if (location == null) return; // 1G828DN - no type ref for synthetic arguments int severity = computeSeverity(IProblem.JavadocUsingDeprecatedType); if (severity == ProblemSeverities.Ignore) return; if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) { if (type.isMemberType() && type instanceof ReferenceBinding && !javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, ((ReferenceBinding)type).modifiers)) { this.handle(IProblem.JavadocHiddenReference, NoArgument, NoArgument, location.sourceStart, location.sourceEnd); } else { this.handle( IProblem.JavadocUsingDeprecatedType, new String[] {new String(type.readableName())}, new String[] {new String(type.shortReadableName())}, severity, location.sourceStart, nodeSourceEnd(null, location, index)); } } } public void javadocDuplicatedParamTag(char[] token, int sourceStart, int sourceEnd, int modifiers) {
public void javadocDeprecatedType(TypeBinding type, ASTNode location, int modifiers, int index) { if (location == null) return; // 1G828DN - no type ref for synthetic arguments int severity = computeSeverity(IProblem.JavadocUsingDeprecatedType); if (severity == ProblemSeverities.Ignore) return; if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) { if (type.isMemberType() && type instanceof ReferenceBinding && !javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, ((ReferenceBinding)type).modifiers)) { this.handle(IProblem.JavadocHiddenReference, NoArgument, NoArgument, location.sourceStart, location.sourceEnd); } else { this.handle( IProblem.JavadocUsingDeprecatedType, new String[] {new String(type.readableName())}, new String[] {new String(type.shortReadableName())}, severity, location.sourceStart, nodeSourceEnd(null, location, index)); } } } public void javadocDuplicatedParamTag(char[] token, int sourceStart, int sourceEnd, int modifiers) {
public void javadocDeprecatedType(TypeBinding type, ASTNode location, int modifiers, int index) { if (location == null) return; // 1G828DN - no type ref for synthetic arguments int severity = computeSeverity(IProblem.JavadocUsingDeprecatedType); if (severity == ProblemSeverities.Ignore) return; if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) { if (type.isMemberType() && type instanceof ReferenceBinding && !javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, ((ReferenceBinding)type).modifiers)) { this.handle(IProblem.JavadocHiddenReference, NoArgument, NoArgument, location.sourceStart, location.sourceEnd); } else { this.handle( IProblem.JavadocUsingDeprecatedType, new String[] {new String(type.readableName())}, new String[] {new String(type.shortReadableName())}, severity, location.sourceStart, nodeSourceEnd(null, location, index)); } } } public void javadocDuplicatedParamTag(char[] token, int sourceStart, int sourceEnd, int modifiers) {
this.contentsOffset = attributeOffset; } else { if (defaultValueBinding.isMemberType()) { this.recordInnerClasses(defaultValueBinding); if (memberValuePairReturnType.isMemberType()) { this.recordInnerClasses(memberValuePairReturnType);
this.contentsOffset = attributeOffset; } else { if (defaultValueBinding.isMemberType()) { this.recordInnerClasses(defaultValueBinding); if (memberValuePairReturnType.isMemberType()) { this.recordInnerClasses(memberValuePairReturnType);
protected char[] getQualifiedSourceName(TypeBinding binding) { TypeBinding type = binding instanceof ArrayBinding ? ((ArrayBinding)binding).leafComponentType : binding; if (type instanceof ReferenceBinding) { if (type.isLocalType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), new char[] {'.', '1', '.'}, binding.sourceName()); } else if (type.isMemberType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), binding.sourceName(), '.'); } } return binding != null ? binding.qualifiedSourceName() : null; } /*
protected char[] getQualifiedSourceName(TypeBinding binding) { TypeBinding type = binding instanceof ArrayBinding ? ((ArrayBinding)binding).leafComponentType : binding; if (type instanceof ReferenceBinding) { if (type.isLocalType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), new char[] {'.', '1', '.'}, binding.sourceName()); } else if (type.isMemberType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), binding.sourceName(), '.'); } } return binding != null ? binding.qualifiedSourceName() : null; } /*
protected char[] getQualifiedSourceName(TypeBinding binding) { TypeBinding type = binding instanceof ArrayBinding ? ((ArrayBinding)binding).leafComponentType : binding; if (type instanceof ReferenceBinding) { if (type.isLocalType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), new char[] {'.', '1', '.'}, binding.sourceName()); } else if (type.isMemberType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), binding.sourceName(), '.'); } } return binding != null ? binding.qualifiedSourceName() : null; } /*
protected char[] getQualifiedSourceName(TypeBinding binding) { TypeBinding type = binding instanceof ArrayBinding ? ((ArrayBinding)binding).leafComponentType : binding; if (type instanceof ReferenceBinding) { if (type.isLocalType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), new char[] {'.', '1', '.'}, binding.sourceName()); } else if (type.isMemberType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), binding.sourceName(), '.'); } } return binding != null ? binding.qualifiedSourceName() : null; } /*
protected char[] getQualifiedSourceName(TypeBinding binding) { TypeBinding type = binding instanceof ArrayBinding ? ((ArrayBinding)binding).leafComponentType : binding; if (type instanceof ReferenceBinding) { if (type.isLocalType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), new char[] {'.', '1', '.'}, binding.sourceName()); } else if (type.isMemberType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), binding.sourceName(), '.'); } } return binding != null ? binding.qualifiedSourceName() : null; } /*
protected char[] getQualifiedSourceName(TypeBinding binding) { TypeBinding type = binding instanceof ArrayBinding ? ((ArrayBinding)binding).leafComponentType : binding; if (type instanceof ReferenceBinding) { if (type.isLocalType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), new char[] {'.', '1', '.'}, binding.sourceName()); } else if (type.isMemberType()) { return CharOperation.concat(qualifiedSourceName(type.enclosingType()), binding.sourceName(), '.'); } } return binding != null ? binding.qualifiedSourceName() : null; } /*