Examples of leafComponentType()


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

  if (!(this instanceof QualifiedTypeReference)   // QualifiedTypeReference#getTypeBinding called above will have already checked deprecation
      && 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()

  // 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.