Package org.eclipse.jdt.internal.compiler.lookup

Examples of org.eclipse.jdt.internal.compiler.lookup.ProblemMethodBinding


*   - ReceiverTypeNotVisible :
*/
public void javadocInvalidMethod(MessageSend messageSend, MethodBinding method, int modifiers) {
  if (!javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) return;
  // set problem id
  ProblemMethodBinding problemMethod = null;
  MethodBinding shownMethod = null;
  int id = IProblem.JavadocUndefinedMethod; //default...
  switch (method.problemId()) {
    case ProblemReasons.NotFound :
      id = IProblem.JavadocUndefinedMethod;
View Full Code Here


  int id = IProblem.UndefinedConstructor; //default...
    MethodBinding shownConstructor = targetConstructor;
  switch (targetConstructor.problemId()) {
    case ProblemReasons.NotFound :
      ProblemMethodBinding problemConstructor = (ProblemMethodBinding) targetConstructor;
      if (problemConstructor.closestMatch != null) {
          if ((problemConstructor.closestMatch.tagBits & TagBits.HasMissingType) != 0) {
          missingTypeInConstructor(statement, problemConstructor.closestMatch);
          return;
          }
View Full Code Here

            messageSend.receiver.sourceStart,
            messageSend.receiver.sourceEnd);
          return;
      }
      id = IProblem.UndefinedMethod;
      ProblemMethodBinding problemMethod = (ProblemMethodBinding) method;
      if (problemMethod.closestMatch != null) {
            shownMethod = problemMethod.closestMatch;
            if ((shownMethod.tagBits & TagBits.HasMissingType) != 0) {
            missingTypeInMethod(messageSend, shownMethod);
            return;
View Full Code Here

      sourceStart = allocation.enumConstant.sourceStart;
      sourceEnd = allocation.enumConstant.sourceEnd;
    }
  }
  int id = IProblem.JavadocUndefinedConstructor; //default...
  ProblemMethodBinding problemConstructor = null;
  MethodBinding shownConstructor = null;
  switch (targetConstructor.problemId()) {
    case ProblemReasons.NotFound :
      id = IProblem.JavadocUndefinedConstructor;
      break;
View Full Code Here

        this.actualMethodBinding = new MethodBinding(this.binding.modifiers, this.binding.selector, this.binding.returnType,
            this.binding instanceof SyntheticMethodBinding ? this.descriptor.parameters : this.binding.parameters,  // retain any faults in parameter list.
                this.binding.thrownExceptions, this.binding.declaringClass);
        this.actualMethodBinding.tagBits = this.binding.tagBits;
      } else {
        this.actualMethodBinding = new ProblemMethodBinding(CharOperation.NO_CHAR, null, ProblemReasons.NoSuchSingleAbstractMethod);
      }
    }
    return this.actualMethodBinding;
  }
View Full Code Here

    SearchContradictions searchContradiction = new SearchContradictions();
    TypeBindingVisitor.visit(searchContradiction, method.returnType);
    if (searchContradiction.typeWithContradiction != null) {
      if (scope == null)
        return new ProblemMethodBinding(method, method.selector, method.parameters, ProblemReasons.ContradictoryNullAnnotations);
      scope.problemReporter().contradictoryNullAnnotationsInferred(method, invocationSite);
      // note: if needed, we might want to update the method by removing the contradictory annotations??
      return method;
    }

    Expression[] arguments = null;
    if (invocationSite instanceof Invocation)
      arguments = ((Invocation)invocationSite).arguments();
    for (int i = 0; i < method.parameters.length; i++) {
      TypeBindingVisitor.visit(searchContradiction, method.parameters[i]);
      if (searchContradiction.typeWithContradiction != null) {
        if (scope == null)
          return new ProblemMethodBinding(method, method.selector, method.parameters, ProblemReasons.ContradictoryNullAnnotations);
        if (arguments != null && i < arguments.length)
          scope.problemReporter().contradictoryNullAnnotationsInferred(method, arguments[i]);
        else
          scope.problemReporter().contradictoryNullAnnotationsInferred(method, invocationSite);
        return method;
View Full Code Here

      if (finalArgumentType == null || !finalArgumentType.isValidBinding())  // already sided with the devil.
        return;
      finalArgumentTypes[i] = finalArgumentType;
    }
    if (scope.parameterCompatibilityLevel(this.binding, finalArgumentTypes, false) == Scope.NOT_COMPATIBLE)
      this.binding = new ProblemMethodBinding(this.binding.original(), this.binding.selector, finalArgumentTypes, ProblemReasons.NotFound);
  }
}
View Full Code Here

  int id = IProblem.UndefinedConstructor; //default...
    MethodBinding shownConstructor = targetConstructor;
  switch (targetConstructor.problemId()) {
    case ProblemReasons.NotFound :
      ProblemMethodBinding problemConstructor = (ProblemMethodBinding) targetConstructor;
      if (problemConstructor.closestMatch != null) {
          if ((problemConstructor.closestMatch.tagBits & TagBits.HasMissingType) != 0) {
          missingTypeInConstructor(statement, problemConstructor.closestMatch);
          return;
          }
View Full Code Here

            messageSend.receiver.sourceStart,
            messageSend.receiver.sourceEnd);
          return;
      }
      id = IProblem.UndefinedMethod;
      ProblemMethodBinding problemMethod = (ProblemMethodBinding) method;
      if (problemMethod.closestMatch != null) {
            shownMethod = problemMethod.closestMatch;
            if ((shownMethod.tagBits & TagBits.HasMissingType) != 0) {
            missingTypeInMethod(messageSend, shownMethod);
            return;
View Full Code Here

      sourceStart = allocation.enumConstant.sourceStart;
      sourceEnd = allocation.enumConstant.sourceEnd;
    }
  }
  int id = IProblem.JavadocUndefinedConstructor; //default...
  ProblemMethodBinding problemConstructor = null;
  MethodBinding shownConstructor = null;
  switch (targetConstructor.problemId()) {
    case ProblemReasons.NotFound :
      id = IProblem.JavadocUndefinedConstructor;
      break;
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.lookup.ProblemMethodBinding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.