Package org.aspectj.weaver.patterns

Examples of org.aspectj.weaver.patterns.Declare


    FormalBinding[] bindings = new org.aspectj.weaver.patterns.FormalBinding[0];
    IScope bindingScope = new BindingScope(getResolvedTypeX(), getResolvedTypeX().getSourceContext(), bindings);
    for (Iterator<AjAttribute> iter = attributeList.iterator(); iter.hasNext();) {
      AjAttribute a = iter.next();
      if (a instanceof AjAttribute.DeclareAttribute) {
        Declare decl = (((AjAttribute.DeclareAttribute) a).getDeclare());
        if (decl instanceof DeclareErrorOrWarning) {
          decl.resolve(bindingScope);
        } else if (decl instanceof DeclarePrecedence) {
          ((DeclarePrecedence) decl).setScopeForResolution(bindingScope);
        }
      }
    }
View Full Code Here


 
          while (typeIterator.hasNext()) {
            ResolvedType ty = (ResolvedType) typeIterator.next();
            //System.out.println("super: " + ty + ", " + );
            for (Iterator i = ty.getDeclares().iterator(); i.hasNext();) {
          Declare dec = (Declare) i.next();
          if (dec.isAdviceLike()) {
            if (includeAdviceLike) ret.add(dec);
          } else {
            ret.add(dec);
          }
        }
View Full Code Here

  /* (non-Javadoc)
   * @see org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory#createDeclareDeclaration(org.eclipse.jdt.internal.compiler.CompilationResult, org.eclipse.jdt.internal.compiler.ast.ASTNode)
   */
  public MethodDeclaration createDeclareDeclaration(CompilationResult result, ASTNode pseudoTokens, Parser parser) {
    Declare declare = ((PseudoTokens)pseudoTokens).parseDeclare(parser);
    return new DeclareDeclaration(result,declare);
  }
View Full Code Here

    if (ajMembersNeedParameterization()) {
      Collection genericDeclares = delegate.getDeclares();
      parameterizedDeclares = new ArrayList();
      Map parameterizationMap = getAjMemberParameterizationMap();
      for (Iterator iter = genericDeclares.iterator(); iter.hasNext();) {
        Declare declareStatement = (Declare) iter.next();
        parameterizedDeclares.add(declareStatement.parameterizeWith(parameterizationMap));
      }
      declares = parameterizedDeclares;
    } else {
      declares = delegate.getDeclares();
    }
    for (Iterator iter = declares.iterator(); iter.hasNext();) {
      Declare d = (Declare) iter.next();
      d.setDeclaringType(this);
    }
    return declares;
  }
View Full Code Here

//  }
// 
  public Declare parseDeclare(Parser parser) {
    PatternParser patternParser = new PatternParser(tokenSource);
    try {
      Declare ret = patternParser.parseDeclare();
      checkEof(parser);
      return ret;
    } catch (ParserException pe) {
      reportError(parser, pe);
      return null;
View Full Code Here

  }
 
  public Declare parseAnnotationDeclare(Parser parser) {
    PatternParser patternParser = new PatternParser(tokenSource);
    try {
      Declare ret = patternParser.parseDeclareAnnotation();
      checkEof(parser);
      return ret;
    } catch (ParserException pe) {
      reportError(parser, pe);
      return null;
View Full Code Here

      for (int i = 0; i < methods.length; i++) {
        if (methods[i] instanceof InterTypeDeclaration) {
          EclipseTypeMunger m = ((InterTypeDeclaration)methods[i]).build(classScope);
          if (m != null) concreteName.typeMungers.add(m);
        } else if (methods[i] instanceof DeclareDeclaration) {
          Declare d = ((DeclareDeclaration)methods[i]).build(classScope);
          if (d != null) concreteName.declares.add(d);
        }
      }
    }
       
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.patterns.Declare

Copyright © 2018 www.massapicom. 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.