Examples of QualifiedTypeReference


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

      for (int i = 0; i < str.dimensions(); i++) {
        output.append("[]"); //$NON-NLS-1$
      }
      return output;
    } else if (tr instanceof QualifiedTypeReference) {
      QualifiedTypeReference qtr = (QualifiedTypeReference) tr;
      output.append(CharOperation.concatWith(qtr.tokens, '.'));
      for (int i = 0; i < qtr.dimensions(); i++) {
        output.append("[]"); //$NON-NLS-1$
      }
      return output;
    }
    throwit(tr);
View Full Code Here

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

    super(type, sourceStart);
  }
 
  public TypeBinding resolveType(BlockScope scope) {
    if(type instanceof QualifiedTypeReference) {
      QualifiedTypeReference qualifiedTypeReference = (QualifiedTypeReference) type;
      Binding binding = scope.parent.getTypeOrPackage(qualifiedTypeReference.tokens); // step up from the ClassScope
      if (!binding.isValidBinding()) {
        scope.problemReporter().invalidType(this, (TypeBinding) binding);
        throw new CompletionNodeFound();
      }
View Full Code Here

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

          handleSig.append(tokens[i]);
        }
        handleSig.append(';');
      }
    } else if (ref instanceof QualifiedTypeReference) {
      QualifiedTypeReference qtr = (QualifiedTypeReference) ref;
      char[][] tokens = qtr.tokens;
      handleSig.append('Q');
      for (int i = 0; i < tokens.length; i++) {
        if (i > 0) {
          handleSig.append('.');
View Full Code Here

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

     
  public static final char[][] ORG_ASPECTJ_RUNTIME_INTERNAL_CONVERSIONS =
      new char[][] {ORG, ASPECTJ, RUNTIME, INTERNAL, "Conversions".toCharArray()};
     
  public static TypeReference getJoinPointType() {
    return new QualifiedTypeReference(ORG_ASPECTJ_LANG_JOINPOINT, new long[10]);
  }
View Full Code Here

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

  public static TypeReference getJoinPointType() {
    return new QualifiedTypeReference(ORG_ASPECTJ_LANG_JOINPOINT, new long[10]);
  }
 
  public static TypeReference getJoinPointStaticPartType() {
    return new QualifiedTypeReference(ORG_ASPECTJ_LANG_JOINPOINT_STATICPART, new long[10]);
  }
View Full Code Here

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

  public static TypeReference getJoinPointStaticPartType() {
    return new QualifiedTypeReference(ORG_ASPECTJ_LANG_JOINPOINT_STATICPART, new long[10]);
  }

  public static TypeReference getAroundClosureType() {
    return new QualifiedTypeReference(ORG_ASPECTJ_RUNTIME_INTERNAL_AROUNDCLOSURE, new long[10]);
  }
View Full Code Here

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

      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});
     
    }
   
    onTypeBinding = (ReferenceBinding)onType.getTypeBindingPublic(classScope);   
    if (!onTypeBinding.isValidBinding()) {
View Full Code Here

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

      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
    if (rb==null) {
      rb = (ReferenceBinding)ot.getTypeBindingPublic(scope.parent);
View Full Code Here

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

  protected void setTypeNameForAnnotation(org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation compilerAnnotation,
      Annotation annotation) {
    TypeReference typeReference = compilerAnnotation.type;
    if (typeReference instanceof QualifiedTypeReference) {
      QualifiedTypeReference qualifiedTypeReference = (QualifiedTypeReference) typeReference;
      char[][] tokens = qualifiedTypeReference.tokens;
      long[] positions = qualifiedTypeReference.sourcePositions;
      // QualifiedName
      annotation.setTypeName(setQualifiedNameNameAndSourceRanges(tokens, positions, typeReference));
    } else {
View Full Code Here

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

          type = fieldBinding.type;
        }
        return this.getTypeBinding(type);
      }
    } else if (node instanceof QualifiedTypeReference) {
      QualifiedTypeReference qualifiedTypeReference = (QualifiedTypeReference) node;
      if (qualifiedTypeReference.resolvedType == null) {
        return null;
      }
      if (index == qualifiedTypeReference.tokens.length) {
        if (!qualifiedTypeReference.resolvedType.isValidBinding() && qualifiedTypeReference instanceof JavadocQualifiedTypeReference) {
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.