Examples of QualifiedTypeReference


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

        } else {
          return this.getVariableBinding(qualifiedNameReference.otherBindings[index - indexOfFirstFieldBinding - 1]);
        }
      }
    } 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

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

        if (ann.type instanceof SingleTypeReference) {
          if (CharOperation.equals("Aspect".toCharArray(), ((SingleTypeReference) ann.type).token)) {
            return true;
          }
        } else if (ann.type instanceof QualifiedTypeReference) {
          QualifiedTypeReference qtr = (QualifiedTypeReference) ann.type;
          if (qtr.tokens.length != 5) {
            return false;
          }
          if (!CharOperation.equals("org".toCharArray(), qtr.tokens[0])) {
            return false;
View Full Code Here

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

    char[][] typeName = CharOperation.splitOn('.', name.replace('$', '.').toCharArray()); // pr149293 - not bulletproof...
    long[] positions = new long[typeName.length];
    for (int i = 0; i < positions.length; i++) {
      positions[i] = pos;
    }
    TypeReference annType = new QualifiedTypeReference(typeName, positions);
    NormalAnnotation ann = new NormalAnnotation(annType, pos);
    ann.resolvedType = tb; // yuck - is this OK in all cases?
    // We don't need membervalues...
    // Expression pcExpr = new
    // StringLiteral(pointcutExpression.toCharArray(),pos,pos);
View Full Code Here

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

    return ret;
  }

  public static TypeReference makeTypeReference(TypeBinding binding) {
    // ??? does this work for primitives
    QualifiedTypeReference ref = new QualifiedTypeReference(new char[][] { binding.sourceName() }, new long[] { 0 }); // ???
    ref.resolvedType = binding;
    ref.constant = Constant.NotAConstant;
    return ref;
  }
View Full Code Here

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

        return new ArrayTypeReference(identifier, dim, 0);
      }
    } else { // qualified type reference
      char[][] identifiers =  CharOperation.splitOn('.', type, 0, dimStart);
      if (dim == 0) {
        return new QualifiedTypeReference(identifiers, new long[identifiers.length]);
      } else {
        return new ArrayQualifiedTypeReference(identifiers, dim, new long[identifiers.length]);
      }
    }
  }
View Full Code Here

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

   * the given position in the source file
   */
  public static Annotation createAspectAnnotation(String perclause, int pos) {
    char[][] typeName = new char[][] {org,aspectj,lang,annotation,aspect};
    long[] positions = new long[] {pos,pos,pos,pos,pos};
    TypeReference orgAspectJLangAnnotationAspect = new QualifiedTypeReference(typeName,positions);
    NormalAnnotation atAspectAnnotation = new NormalAnnotation(orgAspectJLangAnnotationAspect,pos);
    if (!perclause.equals("")) {
      // we have to set the value
      Expression perclauseExpr = new StringLiteral(perclause.toCharArray(),pos,pos,1);
      MemberValuePair[] mvps = new MemberValuePair[1];
View Full Code Here

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

  }
 
  public static Annotation createPrivilegedAnnotation(int pos) {
    char[][] typeName = new char[][] {org,aspectj,internal,lang,annotation,privileged};
    long[] positions = new long[] {pos,pos,pos,pos,pos,pos};
    TypeReference annType = new QualifiedTypeReference(typeName,positions);
    NormalAnnotation ann = new NormalAnnotation(annType,pos);
    return ann;
  }
View Full Code Here

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

  }

  public static Annotation createBeforeAnnotation(String pointcutExpression, String argNames, int pos) {
    char[][] typeName = new char[][] {org,aspectj,lang,annotation,before};
    long[] positions = new long[] {pos,pos,pos,pos,pos};
    TypeReference annType = new QualifiedTypeReference(typeName,positions);
    NormalAnnotation ann = new NormalAnnotation(annType,pos);
    Expression pcExpr = new StringLiteral(pointcutExpression.toCharArray(),pos,pos,1);
    MemberValuePair[] mvps = new MemberValuePair[2];
    mvps[0] = new MemberValuePair("value".toCharArray(),pos,pos,pcExpr);
    Expression argNamesExpr = new StringLiteral(argNames.toCharArray(),pos,pos,1);
View Full Code Here

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

  }

  public static Annotation createAfterAnnotation(String pointcutExpression, String argNames, int pos) {
    char[][] typeName = new char[][] {org,aspectj,lang,annotation,after};
    long[] positions = new long[] {pos,pos,pos,pos,pos};
    TypeReference annType = new QualifiedTypeReference(typeName,positions);
    NormalAnnotation ann = new NormalAnnotation(annType,pos);
    Expression pcExpr = new StringLiteral(pointcutExpression.toCharArray(),pos,pos,1);
    MemberValuePair[] mvps = new MemberValuePair[2];
    mvps[0] = new MemberValuePair("value".toCharArray(),pos,pos,pcExpr);
    Expression argNamesExpr = new StringLiteral(argNames.toCharArray(),pos,pos,1);
View Full Code Here

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

  }

  public static Annotation createAfterReturningAnnotation(String pointcutExpression,  String argNames, String extraArgumentName, int pos) {
    char[][] typeName = new char[][] {org,aspectj,lang,annotation,afterReturning};
    long[] positions = new long[] {pos,pos,pos,pos,pos};
    TypeReference annType = new QualifiedTypeReference(typeName,positions);
    NormalAnnotation ann = new NormalAnnotation(annType,pos);
    Expression pcExpr = new StringLiteral(pointcutExpression.toCharArray(),pos,pos,1);
    MemberValuePair[] mvps = new MemberValuePair[3];
    mvps[0] = new MemberValuePair("pointcut".toCharArray(),pos,pos,pcExpr);
    Expression argExpr = new StringLiteral(extraArgumentName.toCharArray(),pos,pos,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.