Examples of leafComponentType()


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

      return getTypeBinding(((FieldReference) node).resolvedType);
    } else if (node instanceof SingleTypeReference) {
      SingleTypeReference singleTypeReference = (SingleTypeReference) node;
      org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding = singleTypeReference.resolvedType;
      if (binding != null) {
        return this.getTypeBinding(binding.leafComponentType());
      }
    } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) {
      org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration = (org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) node;
      IVariableBinding field = this.getVariableBinding(fieldDeclaration.binding);
      if (field == null) return null;
View Full Code Here

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

      SingleTypeReference singleTypeReference = (SingleTypeReference) node;
      org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding = singleTypeReference.resolvedType;
      if (binding == null) {
        return null;
      }
      return this.getTypeBinding(binding.leafComponentType());
    } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) {
      org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration = (org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) node;
      return this.getVariableBinding(fieldDeclaration.binding);
    } else if (node instanceof MessageSend) {
      MessageSend messageSend = (MessageSend) node;
View Full Code Here

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

      return getTypeBinding(((FieldReference) node).resolvedType);
    } else if (node instanceof SingleTypeReference) {
      SingleTypeReference singleTypeReference = (SingleTypeReference) node;
      org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding = singleTypeReference.resolvedType;
      if (binding != null) {
        return this.getTypeBinding(binding.leafComponentType());
      }
    } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) {
      org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration = (org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) node;
      IVariableBinding field = this.getVariableBinding(fieldDeclaration.binding);
      if (field == null) return null;
View Full Code Here

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

      SingleTypeReference singleTypeReference = (SingleTypeReference) node;
      org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding = singleTypeReference.resolvedType;
      if (binding == null) {
        return null;
      }
      return this.getTypeBinding(binding.leafComponentType());
    } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) {
      org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration = (org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) node;
      return this.getVariableBinding(fieldDeclaration.binding);
    } else if (node instanceof MessageSend) {
      MessageSend messageSend = (MessageSend) node;
View Full Code Here

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

      return getTypeBinding(((FieldReference) node).resolvedType);
    } else if (node instanceof SingleTypeReference) {
      SingleTypeReference singleTypeReference = (SingleTypeReference) node;
      org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding = singleTypeReference.resolvedType;
      if (binding != null) {
        return this.getTypeBinding(binding.leafComponentType());
      }
    } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) {
      org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration = (org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) node;
      IVariableBinding field = this.getVariableBinding(fieldDeclaration.binding);
      if (field == null) return null;
View Full Code Here

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

      SingleTypeReference singleTypeReference = (SingleTypeReference) node;
      org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding = singleTypeReference.resolvedType;
      if (binding == null) {
        return null;
      }
      return this.getTypeBinding(binding.leafComponentType());
    } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) {
      org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration = (org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) node;
      return this.getVariableBinding(fieldDeclaration.binding);
    } else if (node instanceof MessageSend) {
      MessageSend messageSend = (MessageSend) node;
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()

  }
  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)
    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.