Examples of ParameterizedQualifiedTypeReference


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference

      for (int i = 0; i < pstr.dimensions; i++) {
        output.append("[]"); //$NON-NLS-1$
      }
      return output;
    } else if (tr instanceof ParameterizedQualifiedTypeReference) {
      ParameterizedQualifiedTypeReference pqtr = (ParameterizedQualifiedTypeReference) tr;
      output.append(CharOperation.concatWith(pqtr.tokens, '.'));
      output.append('<');
      TypeReference[][] typeArguments = pqtr.typeArguments;
      // TODO don't support parameterized interim name components
      TypeReference[] ofInterest = typeArguments[typeArguments.length - 1];
      for (int i = 0; i < ofInterest.length; i++) {
        if (i > 0) {
          output.append(',');
        }
        printTypeReference(ofInterest[i]);
      }
      output.append('>');
      for (int i = 0; i < pqtr.dimensions(); i++) {
        output.append("[]"); //$NON-NLS-1$
      }
      return output;
    } else if (tr instanceof SingleTypeReference) {
      SingleTypeReference str = (SingleTypeReference) tr;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference

        handleSig.append(tb.signature());
      } else {
        handleSig.append('Q').append(str.token).append(';');
      }
    } else if (ref instanceof ParameterizedQualifiedTypeReference) {
      ParameterizedQualifiedTypeReference pstr = (ParameterizedQualifiedTypeReference) ref;
      char[][] tokens = pstr.tokens;
      for (int i = pstr.dimensions(); i > 0; i--) {
        handleSig.append("\\[");
      }
      handleSig.append('Q');
      for (int i = 0; i < tokens.length; i++) {
        if (i > 0) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference

    if (onType instanceof ParameterizedSingleTypeReference) {
      ParameterizedSingleTypeReference pref = (ParameterizedSingleTypeReference) onType;
      long pos = (((long)pref.sourceStart) << 32) | pref.sourceEnd;
      onType = new SingleTypeReference(pref.token,pos);
    } else {
      ParameterizedQualifiedTypeReference pref = (ParameterizedQualifiedTypeReference) onType;
      long pos = (((long)pref.sourceStart) << 32) | pref.sourceEnd;
      onType = new QualifiedTypeReference(pref.tokens,new long[]{pos});
     
    }
   
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference

        typeVariableAliases = new ArrayList();
        for (int i = 0; i < rb.length; i++) {
          typeVariableAliases.add(CharOperation.toString(rb[i].getTypeName()));
        }
      } else if (onType instanceof ParameterizedQualifiedTypeReference) {
        ParameterizedQualifiedTypeReference paramRef = (ParameterizedQualifiedTypeReference) onType;
        typeVariableAliases = new ArrayList();
        for (int j = 0; j < paramRef.typeArguments.length; j++) {
          TypeReference[] rb = paramRef.typeArguments[j];
          for (int i = 0; rb!=null && i < rb.length; i++) {
            typeVariableAliases.add(CharOperation.toString(rb[i].getTypeName()));
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference

   
    TypeReference ot = onType;
    ReferenceBinding rb = null;
   
    if (ot instanceof ParameterizedQualifiedTypeReference) { // pr132349
      ParameterizedQualifiedTypeReference pref = (ParameterizedQualifiedTypeReference) ot;
      if (pref.typeArguments!=null && pref.typeArguments.length!=0) {
        boolean usingNonTypeVariableInITD = false;
        // Check if any of them are not type variables
        for (int i = 0; i < pref.typeArguments.length; i++) {
          TypeReference[] refs = pref.typeArguments[i];
          for (int j = 0; refs!=null && j < refs.length; j++) {
            TypeBinding tb = refs[j].getTypeBindingPublic(scope.parent);
            if (!tb.isTypeVariable() && !(tb instanceof ProblemReferenceBinding)) {
              usingNonTypeVariableInITD = true;
            }
           
          }
        }
        if (usingNonTypeVariableInITD) {
          scope.problemReporter().signalError(sourceStart,sourceEnd,
            "Cannot make inter-type declarations on parameterized types");
          // to prevent disgusting cascading errors after this problem - lets null out what leads to them (pr105038)
          this.arguments=null;
          this.returnType=new SingleTypeReference(TypeReference.VOID,0L);
         
          this.ignoreFurtherInvestigation=true;
          ReferenceBinding closestMatch = null;
          rb = new ProblemReferenceBinding(ot.getParameterizedTypeName(),closestMatch,0);   
          onType=null;
        }
      }
   
    }

    // Work out the real base type
    if (ot instanceof ParameterizedSingleTypeReference) {
      ParameterizedSingleTypeReference pref = (ParameterizedSingleTypeReference) ot;
      long pos = (((long)pref.sourceStart) << 32) | pref.sourceEnd;
      ot = new SingleTypeReference(pref.token,pos);
    } else if (ot instanceof ParameterizedQualifiedTypeReference) {
      ParameterizedQualifiedTypeReference pref = (ParameterizedQualifiedTypeReference) ot;
      long pos = (((long)pref.sourceStart) << 32) | pref.sourceEnd;
      ot = new QualifiedTypeReference(pref.tokens,new long[]{pos});//SingleTypeReference(pref.Quatoken,pos);
    }
   
    // resolve it
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference

          completeRecord((ArrayType) type, typeReference);
        }
      }
    } else {
      if (typeReference instanceof ParameterizedQualifiedTypeReference) {
        ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference = (ParameterizedQualifiedTypeReference) typeReference;
        char[][] tokens = parameterizedQualifiedTypeReference.tokens;
        TypeReference[][] typeArguments = parameterizedQualifiedTypeReference.typeArguments;
        long[] positions = parameterizedQualifiedTypeReference.sourcePositions;
        sourceStart = (int) (positions[0] >>> 32);
        switch (this.ast.apiLevel) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference

    // retrieve the old ast node
    org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode node = (org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode) this.newAstToOldAst.get(type);
    org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding = null;
    if (node != null) {
            if (node instanceof ParameterizedQualifiedTypeReference) {
         ParameterizedQualifiedTypeReference typeReference = (ParameterizedQualifiedTypeReference) node;
         org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding = typeReference.resolvedType;
         int index;
         if (type.isQualifiedType()) {
           index = ((QualifiedType) type).index;
         } else if (type.isParameterizedType()) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference

          completeRecord((ArrayType) type, typeReference);
        }
      }
    } else {
      if (typeReference instanceof ParameterizedQualifiedTypeReference) {
        ParameterizedQualifiedTypeReference parameterizedQualifiedTypeReference = (ParameterizedQualifiedTypeReference) typeReference;
        char[][] tokens = parameterizedQualifiedTypeReference.tokens;
        TypeReference[][] typeArguments = parameterizedQualifiedTypeReference.typeArguments;
        long[] positions = parameterizedQualifiedTypeReference.sourcePositions;
        sourceStart = (int)(positions[0]>>>32);
        switch(this.ast.apiLevel) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference

        sourceEnd = retrieveClosingAngleBracketPosition(typeReference.sourceEnd);
      } else {
        sourceEnd = returnType.sourceEnd;
      }
    } else if (returnType instanceof ParameterizedQualifiedTypeReference) {
      ParameterizedQualifiedTypeReference typeReference = (ParameterizedQualifiedTypeReference) returnType;
      sourceEnd = retrieveClosingAngleBracketPosition(typeReference.sourceEnd);
    } else {
      sourceEnd = returnType.sourceEnd;
    }
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference

    if (isRecoveredName(ref.tokens)) return;
    if (ref.indexOfFirstFieldBinding >= 1)
      end = (int) ref.sourcePositions[ref.indexOfFirstFieldBinding - 1];
  } else if (location instanceof ParameterizedQualifiedTypeReference) {
    // must be before instanceof ArrayQualifiedTypeReference
    ParameterizedQualifiedTypeReference ref = (ParameterizedQualifiedTypeReference) location;
    if (isRecoveredName(ref.tokens)) return;
    if (type instanceof ReferenceBinding) {
      char[][] name = ((ReferenceBinding) type).compoundName;
      end = (int) ref.sourcePositions[name.length - 1];
    }
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.