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

Examples of org.eclipse.jdt.internal.compiler.lookup.MethodScope.problemReporter()


    this.delegateThis = scope.getField(snippetType, DELEGATE_THIS, this);
    if (this.delegateThis == null || !this.delegateThis.isValidBinding()) {
      // should not happen
      // if this happen we should report illegal access to this in a static context
      methodScope.problemReporter().errorThisSuperInStatic(this);
      return null;
    }
    return this.resolvedType = this.delegateThis.type;
  }
 
View Full Code Here


      for (int j = 0; j < docCommentReferencesLength; j++) {
        if (docCommentReferences[j] == this.handledExceptions[i]) {
          continue nextHandledException;
        }
      }
      scope.problemReporter().unusedDeclaredThrownException(
        this.handledExceptions[index],
        method,
        method.thrownExceptions[index]);
    }
  }
View Full Code Here

    this.delegateThis = scope.getField(snippetType, DELEGATE_THIS, this);
    if (this.delegateThis == null || !this.delegateThis.isValidBinding()) {
      // should not happen
      // if this happen we should report illegal access to this in a static context
      methodScope.problemReporter().errorThisSuperInStatic(this);
      return null;
    }
    return this.resolvedType = this.delegateThis.type;
  }
 
View Full Code Here

      for (int j = 0; j < docCommentReferencesLength; j++) {
        if (docCommentReferences[j] == this.handledExceptions[i]) {
          continue nextHandledException;
        }
      }
      scope.problemReporter().unusedDeclaredThrownException(
        this.handledExceptions[index],
        method,
        method.thrownExceptions[index]);
    }
  }
View Full Code Here

      for (int j = 0; j < docCommentReferencesLength; j++) {
        if (docCommentReferences[j] == this.handledExceptions[i]) {
          continue nextHandledException;
        }
      }
      scope.problemReporter().unusedDeclaredThrownException(
        this.handledExceptions[index],
        method,
        method.thrownExceptions[index]);
    }
  }
View Full Code Here

      for (int j = 0; j < docCommentReferencesLength; j++) {
        if (TypeBinding.equalsEquals(docCommentReferences[j], this.handledExceptions[i])) {
          continue nextHandledException;
        }
      }
      scope.problemReporter().unusedDeclaredThrownException(
        this.handledExceptions[index],
        method,
        method.thrownExceptions[index]);
    }
  }
View Full Code Here

 
  public boolean checkAccess(BlockScope scope, ReferenceBinding thisType) {
    // this/super cannot be used in constructor call
    MethodScope methodScope = scope.methodScope();
    if (this.evaluationContext.isConstructorCall) {
      methodScope.problemReporter().fieldsOrThisBeforeConstructorInvocation(this);
      return false;
    }

    // static may not refer to this/super
    if (this.evaluationContext.declaringTypeName == null || this.evaluationContext.isStatic) {
View Full Code Here

      return false;
    }

    // static may not refer to this/super
    if (this.evaluationContext.declaringTypeName == null || this.evaluationContext.isStatic) {
      methodScope.problemReporter().errorThisSuperInStatic(this);
      return false;
    }
    scope.tagAsAccessingEnclosingInstanceStateOf(thisType, false /* type variable access */);
    return true;
  }
View Full Code Here

    this.delegateThis = scope.getField(snippetType, DELEGATE_THIS, this);
    if (this.delegateThis == null || !this.delegateThis.isValidBinding()) {
      // should not happen
      // if this happen we should report illegal access to this in a static context
      methodScope.problemReporter().errorThisSuperInStatic(this);
      return null;
    }
    return this.resolvedType = this.delegateThis.type;
  }
 
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.