Examples of ParameterizedTypeBinding


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding

        classScope.problemReporter().invalidType(onType, onTypeBinding);
        ignoreFurtherInvestigation = true;
      }
      if (onTypeBinding.isParameterizedType()) {
        // might be OK... pr132349
        ParameterizedTypeBinding ptb = (ParameterizedTypeBinding)onTypeBinding;
        if (ptb.isNestedType()) {
          if (ptb.typeVariables()==null || ptb.typeVariables().length==0) {
            if (ptb.enclosingType().isRawType()) onTypeBinding = ptb.type;
          }
        }
      }
    }
  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding

      if (yetToProcess.contains(rb)) {
        collectAllITDsAndDeclares((SourceTypeBinding) rb, yetToProcess);
      }
    } else if (rb instanceof ParameterizedTypeBinding) {
      // If its a PTB we need to pull the SourceTypeBinding out of it.
      ParameterizedTypeBinding ptb = (ParameterizedTypeBinding) rb;
      if (ptb.type instanceof SourceTypeBinding && yetToProcess.contains(ptb.type)) {
        collectAllITDsAndDeclares((SourceTypeBinding) ptb.type, yetToProcess);
      }
    }
  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding

    if (binding instanceof ParameterizedTypeBinding) {
      if (binding instanceof RawTypeBinding) {
        // special case where no parameters are specified!
        return UnresolvedType.forRawTypeName(getName(binding));
      }
      ParameterizedTypeBinding ptb = (ParameterizedTypeBinding) binding;

      UnresolvedType[] arguments = null;

      if (ptb.arguments != null) { // null can mean this is an inner type of a Parameterized Type with no bounds of its own
        // (pr100227)
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding

        indexOfTypeParameterBeingConverted = i;
        argumentBindings[i] = makeTypeBinding(typeParameters[i]);
      }
      indexOfTypeParameterBeingConverted = 0;
      baseTypeForParameterizedType = null;
      ParameterizedTypeBinding ptb = lookupEnvironment.createParameterizedType(baseTypeBinding, argumentBindings,
          baseTypeBinding.enclosingType());
      return ptb;
    } else if (typeX.isTypeVariableReference()) {
      // return makeTypeVariableBinding((TypeVariableReference)typeX);
      return makeTypeVariableBindingFromAJTypeVariable(((TypeVariableReference) typeX).getTypeVariable());
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding

       
      case Binding.PARAMETERIZED_TYPE :
        if (!typeBinding2.isParameterizedType()) {
          return false;
        }
        ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) typeBinding;
        ParameterizedTypeBinding parameterizedTypeBinding2 = (ParameterizedTypeBinding) typeBinding2;
        return CharOperation.equals(parameterizedTypeBinding.compoundName, parameterizedTypeBinding2.compoundName)
          && (parameterizedTypeBinding.modifiers & (ExtraCompilerModifiers.AccJustFlag | ClassFileConstants.AccInterface | ClassFileConstants.AccEnum | ClassFileConstants.AccAnnotation))
              == (parameterizedTypeBinding2.modifiers & (ExtraCompilerModifiers.AccJustFlag | ClassFileConstants.AccInterface | ClassFileConstants.AccEnum | ClassFileConstants.AccAnnotation))
          && isEqual(parameterizedTypeBinding.arguments, parameterizedTypeBinding2.arguments, visitedTypes)
          && isEqual(parameterizedTypeBinding.enclosingType(), parameterizedTypeBinding2.enclosingType(), visitedTypes);
             
      case Binding.WILDCARD_TYPE :
        if (!typeBinding2.isWildcard()) {
          return false;
        }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding

        }
        TypeVariableBinding typeVariableBinding = (TypeVariableBinding) this.binding;
        return new String(typeVariableBinding.sourceName);

      case Binding.PARAMETERIZED_TYPE :
        ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) this.binding;
        buffer = new StringBuffer();
        buffer.append(parameterizedTypeBinding.sourceName());
        ITypeBinding[] tArguments = getTypeArguments();
        final int typeArgumentsLength = tArguments.length;
        if (typeArgumentsLength != 0) {
          buffer.append('<');
          for (int i = 0; i < typeArgumentsLength; i++) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding

        buffer = new StringBuffer();
        if (isMember()) {
          buffer
            .append(getDeclaringClass().getQualifiedName())
            .append('.');
          ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) this.binding;
          buffer.append(parameterizedTypeBinding.sourceName());
          ITypeBinding[] tArguments = getTypeArguments();
          final int typeArgumentsLength = tArguments.length;
          if (typeArgumentsLength != 0) {
            buffer.append('<');
            for (int i = 0; i < typeArgumentsLength; i++) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding

  public ITypeBinding[] getTypeArguments() {
    if (this.typeArguments != null) {
      return this.typeArguments;
    }
    if (this.binding.isParameterizedType()) {
      ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) this.binding;
      final org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding[] arguments = parameterizedTypeBinding.arguments;
      if (arguments != null) {
        int argumentsLength = arguments.length;
        ITypeBinding[] newTypeArguments = new ITypeBinding[argumentsLength];
        for (int i = 0; i < argumentsLength; i++) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding

    if (isClass() || isInterface() || isEnum()) {
      ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
      if (referenceBinding.isRawType()) {
        return !((RawTypeBinding) referenceBinding).genericType().isBinaryBinding();
      } else if (referenceBinding.isParameterizedType()) {
        ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) referenceBinding;
        org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding erasure = parameterizedTypeBinding.erasure();
        if (erasure instanceof ReferenceBinding) {
          return !((ReferenceBinding) erasure).isBinaryBinding();
        }
        return false;
      } else {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding

        perClause = ((AspectDeclaration) sourceSc.scope.referenceContext).perClause;
      } else {
        return null;
      }
    } else if (binding instanceof ParameterizedTypeBinding) {
      ParameterizedTypeBinding pBinding = (ParameterizedTypeBinding) binding;
      if (pBinding.type instanceof SourceTypeBinding) {
        SourceTypeBinding sourceSc = (SourceTypeBinding) pBinding.type;
        if (sourceSc.scope != null && sourceSc.scope.referenceContext instanceof AspectDeclaration) {
          perClause = ((AspectDeclaration) sourceSc.scope.referenceContext).perClause;
        } else {
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.