Examples of capture()


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 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()

  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()

        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()

  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()

    */
   
    // handle the special case of array construction first.
    this.receiverType = lhsType;
    if (!this.haveReceiver && !this.lhs.isSuper() && !this.isArrayConstructorReference())
      this.receiverType = lhsType.capture(scope, this.sourceEnd);
    final int parametersLength = descriptorParameters.length;
        if (isConstructorReference() && lhsType.isArrayType()) {
          final TypeBinding leafComponentType = lhsType.leafComponentType();
      if (!leafComponentType.isReifiable()) {
            scope.problemReporter().illegalGenericArray(leafComponentType, this);
View Full Code Here

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

          if (potentialReceiver.isCompatibleWith(this.receiverType, scope)) {
            TypeBinding typeToSearch = this.receiverType;
            if (this.receiverType.isRawType()) {
              TypeBinding superType = potentialReceiver.findSuperTypeOriginatingFrom(this.receiverType);
              if (superType != null)
                typeToSearch = superType.capture(scope, this.sourceEnd);
            }
            TypeBinding [] parameters = Binding.NO_PARAMETERS;
            if (parametersLength > 1) {
              parameters = new TypeBinding[parametersLength - 1];
              System.arraycopy(descriptorParameters, 1, parameters, 0, parametersLength - 1);
View Full Code Here

Examples of org.impalaframework.command.framework.CommandState.capture()

    testCommand.setCommandMap(commandMap);

    System.out.println("--------------------");

    while (true) {
      commandState.capture(testCommand);

      try {
        testCommand.execute(commandState);
      }
      catch (TerminatedApplicationException e) {
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.