Examples of canBeSeenBy()


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

          ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
          this.genericCast = originalBinding.type.genericCast(targetType);
          if (this.genericCast instanceof ReferenceBinding) {
        ReferenceBinding referenceCast = (ReferenceBinding) this.genericCast;
        if (!referenceCast.canBeSeenBy(scope)) {
              scope.problemReporter().invalidType(this,
                  new ProblemReferenceBinding(
                CharOperation.splitOn('.', referenceCast.shortReadableName()),
                referenceCast,
                ProblemReasons.NotVisible));
View Full Code Here

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

      scope.problemReporter().nonStaticAccessToStaticField(this, fieldBinding);
    }
    ReferenceBinding declaringClass = this.binding.declaringClass;
    if (!isImplicitThisRcv
        && declaringClass != this.actualReceiverType
        && declaringClass.canBeSeenBy(scope)) {
      scope.problemReporter().indirectAccessToStaticField(this, fieldBinding);
    }
    // check if accessing enum static field in initializer
    if (declaringClass.isEnum()) {
      MethodScope methodScope = scope.methodScope();
View Full Code Here

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

          ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
          this.genericCast = originalBinding.type.genericCast(targetType);
          if (this.genericCast instanceof ReferenceBinding) {
        ReferenceBinding referenceCast = (ReferenceBinding) this.genericCast;
        if (!referenceCast.canBeSeenBy(scope)) {
              scope.problemReporter().invalidType(this,
                  new ProblemReferenceBinding(
                CharOperation.splitOn('.', referenceCast.shortReadableName()),
                referenceCast,
                ProblemReasons.NotVisible));
View Full Code Here

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

      scope.problemReporter().nonStaticAccessToStaticField(this, fieldBinding);
    }
    ReferenceBinding declaringClass = this.binding.declaringClass;
    if (!isImplicitThisRcv
        && declaringClass != this.actualReceiverType
        && declaringClass.canBeSeenBy(scope)) {
      scope.problemReporter().indirectAccessToStaticField(this, fieldBinding);
    }
    // check if accessing enum static field in initializer
    if (declaringClass.isEnum()) {
      MethodScope methodScope = scope.methodScope();
View Full Code Here

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

          ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
          this.genericCast = originalType.genericCast(scope.boxing(targetType));
          if (this.genericCast instanceof ReferenceBinding) {
        ReferenceBinding referenceCast = (ReferenceBinding) this.genericCast;
        if (!referenceCast.canBeSeenBy(scope)) {
              scope.problemReporter().invalidType(this,
                  new ProblemReferenceBinding(
                CharOperation.splitOn('.', referenceCast.shortReadableName()),
                referenceCast,
                ProblemReasons.NotVisible));
View Full Code Here

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

          // from 1.5 source level on, array#clone() resolves to array type, but codegen to #clone()Object - thus require extra inserted cast
      this.valueCast = runtimeTimeType;
    }
        if (this.valueCast instanceof ReferenceBinding) {
      ReferenceBinding referenceCast = (ReferenceBinding) this.valueCast;
      if (!referenceCast.canBeSeenBy(scope)) {
            scope.problemReporter().invalidType(this,
                new ProblemReferenceBinding(
              CharOperation.splitOn('.', referenceCast.shortReadableName()),
              referenceCast,
              ProblemReasons.NotVisible));
View Full Code Here

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

          : runtimeTimeType;
      TypeBinding typeCast = originalType.genericCast(targetType);
      setGenericCast(length, typeCast);
      if (typeCast instanceof ReferenceBinding) {
        ReferenceBinding referenceCast = (ReferenceBinding) typeCast;
        if (!referenceCast.canBeSeenBy(scope)) {
          scope.problemReporter().invalidType(this,
              new ProblemReferenceBinding(
                  CharOperation.splitOn('.', referenceCast.shortReadableName()),
                  referenceCast,
                  ProblemReasons.NotVisible));
View Full Code Here

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

      return ArrayBinding.ArrayLength;
    return null;
  }

  ReferenceBinding currentType = (ReferenceBinding) receiverType;
  if (!currentType.canBeSeenBy(this))
    return new ProblemFieldBinding(currentType, fieldName, ProblemReasons.ReceiverTypeNotVisible);

  FieldBinding field = currentType.getField(fieldName, true /*resolve*/);
  if (field != null) {
    if (canBeSeenByForCodeSnippet(field, currentType, invocationSite, this))
View Full Code Here

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

          // from 1.5 source level on, array#clone() resolves to array type, but codegen to #clone()Object - thus require extra inserted cast
      this.valueCast = runtimeTimeType;
    }
        if (this.valueCast instanceof ReferenceBinding) {
      ReferenceBinding referenceCast = (ReferenceBinding) this.valueCast;
      if (!referenceCast.canBeSeenBy(scope)) {
            scope.problemReporter().invalidType(this,
                new ProblemReferenceBinding(
              CharOperation.splitOn('.', referenceCast.shortReadableName()),
              referenceCast,
              ProblemReasons.NotVisible));
View Full Code Here

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

          ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
          this.genericCast = originalBinding.type.genericCast(targetType);
          if (this.genericCast instanceof ReferenceBinding) {
        ReferenceBinding referenceCast = (ReferenceBinding) this.genericCast;
        if (!referenceCast.canBeSeenBy(scope)) {
              scope.problemReporter().invalidType(this,
                  new ProblemReferenceBinding(
                CharOperation.splitOn('.', referenceCast.shortReadableName()),
                referenceCast,
                ProblemReasons.NotVisible));
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.