Examples of leafComponentType()


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

  // set the generic cast after the fact, once the type expectation is fully known (no need for strict cast)
  if (this.binding != null && this.binding.isValidBinding()) {
    FieldBinding originalBinding = this.binding.original();
    TypeBinding originalType = originalBinding.type;
      // extra cast needed if field type is type variable
    if (originalType.leafComponentType().isTypeVariable()) {
        TypeBinding targetType = (!compileTimeType.isBaseType() && runtimeTimeType.isBaseType())
          ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
          this.genericCast = originalBinding.type.genericCast(targetType);
          if (this.genericCast instanceof ReferenceBinding) {
View Full Code Here

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

  }
  if (isTypeUseDeprecated(type, scope)) {
    reportDeprecatedType(type, scope);
  }
  type = scope.environment().convertToRawType(type, false /*do not force conversion of enclosing types*/);
  if (type.leafComponentType().isRawType()
      && (this.bits & ASTNode.IgnoreRawTypeCheck) == 0
      && scope.compilerOptions().getSeverity(CompilerOptions.RawTypeReference) != ProblemSeverities.Ignore) {
    scope.problemReporter().rawTypeReference(this, type);
  }
  if (hasError) {
View Full Code Here

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

    // set the generic cast after the fact, once the type expectation is fully known (no need for strict cast)
    FieldBinding field = (FieldBinding) this.binding;
    FieldBinding originalBinding = field.original();
    TypeBinding originalType = originalBinding.type;
    // extra cast needed if field type is type variable
    if (originalType.leafComponentType().isTypeVariable()) {
        TypeBinding targetType = (!compileTimeType.isBaseType() && runtimeTimeType.isBaseType())
          ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
          this.genericCast = originalType.genericCast(scope.boxing(targetType));
          if (this.genericCast instanceof ReferenceBinding) {
View Full Code Here

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

  // set the generic cast after the fact, once the type expectation is fully known (no need for strict cast)
  if (this.binding != null && this.binding.isValidBinding()) {
    MethodBinding originalBinding = this.binding.original();
    TypeBinding originalType = originalBinding.returnType;
      // extra cast needed if method return type is type variable
    if (originalType.leafComponentType().isTypeVariable()) {
        TypeBinding targetType = (!compileTimeType.isBaseType() && runtimeTimeType.isBaseType())
          ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
          this.valueCast = originalType.genericCast(targetType);
    }   else if (this.binding == scope.environment().arrayClone
View Full Code Here

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

            return _env.getFactory().newTypeMirror(((ReferenceBinding) binding).erasure());
        }
        if (binding instanceof ArrayBinding) {
          TypeBinding typeBinding = (TypeBinding) binding;
            return new ArrayTypeImpl(_env, this._env.getLookupEnvironment().createArrayType(
                    typeBinding.leafComponentType().erasure(),
                    typeBinding.dimensions()));
        }
        return t;
    }
View Full Code Here

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

    @Override
    public ArrayType getArrayType(TypeMirror componentType) {
        TypeMirrorImpl typeMirrorImpl = (TypeMirrorImpl) componentType;
        TypeBinding typeBinding = (TypeBinding) typeMirrorImpl._binding;
        return new ArrayTypeImpl(_env, this._env.getLookupEnvironment().createArrayType(
                typeBinding.leafComponentType(),
                typeBinding.dimensions() + 1));
    }

    /* (non-Javadoc)
     * @see javax.lang.model.util.Types#getDeclaredType(javax.lang.model.element.TypeElement, javax.lang.model.type.TypeMirror[])
View Full Code Here

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

  }
  if (field != null) {
    FieldBinding originalBinding = field.original();
    TypeBinding originalType = originalBinding.type;
    // extra cast needed if field type is type variable
    if (originalType.leafComponentType().isTypeVariable()) {
      TypeBinding targetType = (!compileTimeType.isBaseType() && runtimeTimeType.isBaseType())
      ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
      TypeBinding typeCast = originalType.genericCast(targetType);
      setGenericCast(length, typeCast);
View Full Code Here

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

  // set the generic cast after the fact, once the type expectation is fully known (no need for strict cast)
  if (this.binding != null && this.binding.isValidBinding()) {
    MethodBinding originalBinding = this.binding.original();
    TypeBinding originalType = originalBinding.returnType;
      // extra cast needed if method return type is type variable
    if (originalType.leafComponentType().isTypeVariable()) {
        TypeBinding targetType = (!compileTimeType.isBaseType() && runtimeTimeType.isBaseType())
          ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
          this.valueCast = originalType.genericCast(targetType);
    }   else if (this.binding == scope.environment().arrayClone
View Full Code Here

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

    // set the generic cast after the fact, once the type expectation is fully known (no need for strict cast)
    FieldBinding field = (FieldBinding) this.binding;
    FieldBinding originalBinding = field.original();
    TypeBinding originalType = originalBinding.type;
    // extra cast needed if field type is type variable
    if (originalType.leafComponentType().isTypeVariable()) {
        TypeBinding targetType = (!compileTimeType.isBaseType() && runtimeTimeType.isBaseType())
          ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
          this.genericCast = originalType.genericCast(scope.boxing(targetType));
          if (this.genericCast instanceof ReferenceBinding) {
View Full Code Here

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

  // set the generic cast after the fact, once the type expectation is fully known (no need for strict cast)
  if (this.binding != null && this.binding.isValidBinding()) {
    FieldBinding originalBinding = this.binding.original();
    TypeBinding originalType = originalBinding.type;
      // extra cast needed if field type is type variable
    if (originalType.leafComponentType().isTypeVariable()) {
        TypeBinding targetType = (!compileTimeType.isBaseType() && runtimeTimeType.isBaseType())
          ? compileTimeType  // unboxing: checkcast before conversion
          : runtimeTimeType;
          this.genericCast = originalBinding.type.genericCast(targetType);
          if (this.genericCast instanceof ReferenceBinding) {
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.