Package org.aspectj.ajdt.internal.compiler.ast

Examples of org.aspectj.ajdt.internal.compiler.ast.DeclareDeclaration


      node.setKind(IProgramElement.Kind.POINTCUT);
      node.setName(translatePointcutName(new String(methodDeclaration.selector)));
      setParameters(methodDeclaration, node);

    } else if (methodDeclaration instanceof DeclareDeclaration) {
      DeclareDeclaration declare = (DeclareDeclaration) methodDeclaration;
      String name = AsmRelationshipUtils.DEC_LABEL + " ";
      if (declare.declareDecl instanceof DeclareErrorOrWarning) {
        DeclareErrorOrWarning deow = (DeclareErrorOrWarning) declare.declareDecl;

        if (deow.isError()) {
View Full Code Here


    List namedPointcuts = genNamedPointcuts(methodDeclaration);
    // if (shouldAddUsesPointcut)
    // addUsesPointcutRelationsForNode(peNode, namedPointcuts, methodDeclaration);

    if (methodDeclaration instanceof DeclareDeclaration) {
      DeclareDeclaration dDeclaration = (DeclareDeclaration) methodDeclaration;
      Declare decl = dDeclaration.declareDecl;
      if (decl instanceof DeclareParents) {
        TypePatternList tpl = ((DeclareParents) decl).getParents();
        List<String> parents = new ArrayList<String>();
        for (int i = 0; i < tpl.size(); i++) {
View Full Code Here

    ((AdviceDeclaration) adviceDecl).kind = AdviceKind.AfterReturning;
  }

  public MethodDeclaration createDeclareDeclaration(CompilationResult result, ASTNode pseudoTokens, Parser parser) {
    Declare declare = ((PseudoTokens) pseudoTokens).parseDeclare(parser);
    return new DeclareDeclaration(result, declare);
  }
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

      node.setKind(IProgramElement.Kind.POINTCUT);
      node.setName(translatePointcutName(new String(methodDeclaration.selector)));
      setParameters(methodDeclaration, node);
     
    } else if (methodDeclaration instanceof DeclareDeclaration) {
      DeclareDeclaration declare = (DeclareDeclaration)methodDeclaration;
      String name = DEC_LABEL + " ";
      if (declare.declareDecl instanceof DeclareErrorOrWarning) {
        DeclareErrorOrWarning deow = (DeclareErrorOrWarning)declare.declareDecl;
       
        if (deow.isError()) {
View Full Code Here

TOP

Related Classes of org.aspectj.ajdt.internal.compiler.ast.DeclareDeclaration

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.