Examples of closestMatch()


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

      switch(referenceBinding.problemId()) {
        case ProblemReasons.NotVisible :
        case ProblemReasons.NonStaticReferenceInStaticContext :
          if (referenceBinding instanceof ProblemReferenceBinding) {
            ProblemReferenceBinding problemReferenceBinding = (ProblemReferenceBinding) referenceBinding;
            ReferenceBinding binding2 = problemReferenceBinding.closestMatch();
            ITypeBinding binding = (ITypeBinding) this.bindingTables.compilerBindingsToASTBindings.get(binding2);
            if (binding != null) {
              return binding;
            }
            binding = new TypeBinding(this, binding2);
View Full Code Here

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

      switch(referenceBinding.problemId()) {
        case ProblemReasons.NotVisible :
        case ProblemReasons.NonStaticReferenceInStaticContext :
          if (referenceBinding instanceof ProblemReferenceBinding) {
            ProblemReferenceBinding problemReferenceBinding = (ProblemReferenceBinding) referenceBinding;
            org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding2 = problemReferenceBinding.closestMatch();
            ITypeBinding binding = (ITypeBinding) this.bindingTables.compilerBindingsToASTBindings.get(binding2);
            if (binding != null) {
              return binding;
            }
            binding = new TypeBinding(this, binding2);
View Full Code Here

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

      if (binding instanceof ProblemReferenceBinding) {
        ProblemReferenceBinding prb = (ProblemReferenceBinding) binding;
        if (prb.problemId() == ProblemReasons.NotVisible) {
          // It's just a visibility problem, so try drilling
          // down manually
          ReferenceBinding drilling = prb.closestMatch();
          for (int i = prb.compoundName.length; i < compoundName.length; i++) {
            drilling = drilling.getMemberType(compoundName[i]);
          }
          binding = drilling;
        }
View Full Code Here

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

      switch(referenceBinding.problemId()) {
        case ProblemReasons.NotVisible :
        case ProblemReasons.NonStaticReferenceInStaticContext :
          if (referenceBinding instanceof ProblemReferenceBinding) {
            ProblemReferenceBinding problemReferenceBinding = (ProblemReferenceBinding) referenceBinding;
            org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding2 = problemReferenceBinding.closestMatch();
            ITypeBinding binding = (ITypeBinding) this.bindingTables.compilerBindingsToASTBindings.get(binding2);
            if (binding != null) {
              return binding;
            }
            binding = new TypeBinding(this, binding2);
View Full Code Here

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

      switch(referenceBinding.problemId()) {
        case ProblemReasons.NotVisible :
        case ProblemReasons.NonStaticReferenceInStaticContext :
          if (referenceBinding instanceof ProblemReferenceBinding) {
            ProblemReferenceBinding problemReferenceBinding = (ProblemReferenceBinding) referenceBinding;
            org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding2 = problemReferenceBinding.closestMatch();
            ITypeBinding binding = (ITypeBinding) this.bindingTables.compilerBindingsToASTBindings.get(binding2);
            if (binding != null) {
              return binding;
            }
            binding = new TypeBinding(this, binding2);
View Full Code Here

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

    this.constant = Constant.NotAConstant;

    ReferenceBinding containerAnnotationType = (ReferenceBinding) this.resolvedType;
    if (!containerAnnotationType.isValidBinding())
      containerAnnotationType = (ReferenceBinding) containerAnnotationType.closestMatch();
    Annotation repeatingAnnotation = this.containees[0];
    ReferenceBinding repeatingAnnotationType = (ReferenceBinding) repeatingAnnotation.resolvedType;
    if (!repeatingAnnotationType.isDeprecated() && isTypeUseDeprecated(containerAnnotationType, scope)) {
      scope.problemReporter().deprecatedType(containerAnnotationType, repeatingAnnotation);
    }
View Full Code Here

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

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

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

    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

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
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.