Examples of capture()


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

      && scope.compilerOptions().complianceLevel >= ClassFileConstants.JDK1_5
      && CharOperation.equals(this.binding.selector, CLONE)) {
    this.resolvedType = actualReceiverType;
  } else {
    TypeBinding returnType = this.binding.returnType;
    if (returnType != null) returnType = returnType.capture(scope, this.sourceEnd);
    this.resolvedType = returnType;
  }
  return this.resolvedType;
}
}
View Full Code Here

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

        returnType = scope.environment().convertToRawType(returnType.erasure(), true);
      }
    } else {
      returnType = this.binding.returnType;
      if (returnType != null) {
        returnType = returnType.capture(scope, this.sourceEnd);
      }
    }
    this.resolvedType = returnType;
  }
  if (this.receiver.isSuper() && compilerOptions.getSeverity(CompilerOptions.OverridingMethodWithoutSuperInvocation) != ProblemSeverities.Ignore) {
View Full Code Here

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

  int index = this.indexOfFirstFieldBinding;
  if (index == length) { //  restrictiveFlag == FIELD
    this.constant = ((FieldBinding) this.binding).constant();
    // perform capture conversion if read access
    return (type != null && (this.bits & ASTNode.IsStrictlyAssigned) == 0)
        ? type.capture(scope, this.sourceEnd)
        : type;
  }
  // allocation of the fieldBindings array  and its respective constants
  int otherBindingsLength = length - index;
  this.otherBindings = new FieldBinding[otherBindingsLength];
View Full Code Here

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

    if (type == null)
      return null; // could not resolve type prior to this point

    this.bits &= ~ASTNode.DepthMASK; // flush previous depth if any
    FieldBinding previousField = field;
    field = scope.getField(type.capture(scope, (int)this.sourcePositions[index]), token, this);
    int place = index - this.indexOfFirstFieldBinding;
    this.otherBindings[place] = field;
    this.otherDepths[place] = (this.bits & ASTNode.DepthMASK) >> ASTNode.DepthSHIFT;
    if (field.isValidBinding()) {
      // set generic cast of for previous field (if any)
View Full Code Here

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

            variableType = checkFieldAccess(scope);
          }
          // perform capture conversion if read access
          if (variableType != null) {
            this.resolvedType = variableType = (((this.bits & ASTNode.IsStrictlyAssigned) == 0)
                ? variableType.capture(scope, this.sourceEnd)
                : variableType);
            if ((variableType.tagBits & TagBits.HasMissingType) != 0) {
              if ((this.bits & Binding.LOCAL) == 0) {
                // only complain if field reference (for local, its type got flagged already)
                scope.problemReporter().invalidType(this, variableType);
View Full Code Here

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

  TypeBinding arrayType = this.receiver.resolveType(scope);
  if (arrayType != null) {
    this.receiver.computeConversion(scope, arrayType, arrayType);
    if (arrayType.isArrayType()) {
      TypeBinding elementType = ((ArrayBinding) arrayType).elementsType();
      this.resolvedType = ((this.bits & ASTNode.IsStrictlyAssigned) == 0) ? elementType.capture(scope, this.sourceEnd) : elementType;
    } else {
      scope.problemReporter().referenceMustBeArrayTypeAt(arrayType, this);
    }
  }
  TypeBinding positionType = this.position.resolveTypeExpecting(scope, TypeBinding.INT);
View Full Code Here

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

    }
  }
  TypeBinding fieldType = fieldBinding.type;
  if (fieldType != null) {
    if ((this.bits & ASTNode.IsStrictlyAssigned) == 0) {
      fieldType = fieldType.capture(scope, this.sourceEnd)// perform capture conversion if read access
    }
    this.resolvedType = fieldType;
    if ((fieldType.tagBits & TagBits.HasMissingType) != 0) {
      scope.problemReporter().invalidType(this, fieldType);
      return null;
View Full Code Here

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

   
    if (returnType != null) {
      if ((this.bits & ASTNode.Unchecked) != 0 && this.genericTypeArguments == null) {
        returnType = scope.environment().convertToRawType(returnType.erasure(), true);
      }
      returnType = returnType.capture(scope, this.sourceEnd);     
    }
    this.resolvedType = returnType;
  }
  return this.resolvedType;
}
View Full Code Here

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

    }
  }
  TypeBinding fieldType = fieldBinding.type;
  if (fieldType != null) {
    if ((this.bits & ASTNode.IsStrictlyAssigned) == 0) {
      fieldType = fieldType.capture(scope, this.sourceEnd)// perform capture conversion if read access
    }
    this.resolvedType = fieldType;
    if ((fieldType.tagBits & TagBits.HasMissingType) != 0) {
      scope.problemReporter().invalidType(this, fieldType);
      return null;
View Full Code Here

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

            variableType = checkFieldAccess(scope);
          }
          // perform capture conversion if read access
          if (variableType != null) {
            this.resolvedType = variableType = (((this.bits & ASTNode.IsStrictlyAssigned) == 0)
                ? variableType.capture(scope, this.sourceEnd)
                : variableType);
            if ((variableType.tagBits & TagBits.HasMissingType) != 0) {
              if ((this.bits & Binding.LOCAL) == 0) {
                // only complain if field reference (for local, its type got flagged already)
                scope.problemReporter().invalidType(this, variableType);
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.