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

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.closestMatch()


    reportInvalidType(scope);
    switch (type.problemId()) {
      case ProblemReasons.NotFound :
      case ProblemReasons.NotVisible :
      case ProblemReasons.InheritedNameHidesEnclosingName :
        type = type.closestMatch();
        if (type == null) return null;
        break;
      default :
        return null;
    }
View Full Code Here


    reportInvalidType(scope);
    switch (type.problemId()) {
      case ProblemReasons.NotFound :
      case ProblemReasons.NotVisible :
      case ProblemReasons.InheritedNameHidesEnclosingName :
        type = type.closestMatch();
        if (type == null) return null;
        break;
      default :
        return null;
    }
View Full Code Here

    super.resolveType(scope);
   
      if (lhsType == null)
      return this.resolvedType = null;   // no hope
    if (lhsType.problemId() == ProblemReasons.AttemptToBypassDirectSuper)
      lhsType = lhsType.closestMatch()// improve resolving experience
      if (!lhsType.isValidBinding())
      return this.resolvedType = null// nope, no useful type found
    final TypeBinding[] descriptorParameters = this.descriptor != null ? this.descriptor.parameters : Binding.NO_PARAMETERS;
    if (lhsType.isBaseType()) {
      scope.problemReporter().errorNoMethodFor(this.lhs, lhsType, this.selector, descriptorParameters);
View Full Code Here

    reportInvalidType(scope);
    switch (type.problemId()) {
      case ProblemReasons.NotFound :
      case ProblemReasons.NotVisible :
      case ProblemReasons.InheritedNameHidesEnclosingName :
        type = type.closestMatch();
        if (type == null) return null;
        break;
      default :
        return null;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.