Package org.aspectj.org.eclipse.jdt.internal.compiler.ast

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


  protected void consumeAspectHeaderRest() {
    //--[dominates TypePattern] [persingleton() | percflow(PCD) | perthis(PCD) | pertarget(PCD)]
    //AspectHeaderRest ::= AspectHeaderRestStart PseudoTokens
    concatNodeLists();
    this.display();
    ASTNode pseudoTokens = popPseudoTokens("{");
    println("pseudo: " + pseudoTokens);

    TypeDeclaration aspectDecl = (TypeDeclaration) astStack[astPtr];
   
    declarationFactory.setDominatesPatternFrom(aspectDecl,pseudoTokens,this);
View Full Code Here


   
    pushOnAstStack(adviceDecl);
  }
 
  protected void consumePointcutDesignatorOnAdvice() {
    ASTNode des = popPointcutDesignator("{");
    MethodDeclaration adviceDecl = (MethodDeclaration)astStack[astPtr];
    declarationFactory.setPointcutDesignatorOnAdvice(adviceDecl,des);
    adviceDecl.sourceEnd =   des.sourceEnd;
    adviceDecl.bodyStart = des.sourceEnd+1;
  }
View Full Code Here

    adviceDecl.sourceEnd =   des.sourceEnd;
    adviceDecl.bodyStart = des.sourceEnd+1;
  }
 
  protected void consumePointcutDesignatorOnDeclaration() {
    ASTNode des = popPointcutDesignator(";");
    MethodDeclaration pcutDecl = (MethodDeclaration)astStack[astPtr];
    declarationFactory.setPointcutDesignatorOnPointcut(pcutDecl,des);
    pcutDecl.sourceEnd =   des.sourceEnd;
    pcutDecl.bodyStart = des.sourceEnd+1;
    pcutDecl.bodyEnd = endPosition;
View Full Code Here

  protected void consumeClassBodyDeclarationInAspect() { }
 

  protected void consumeDeclareDeclaration() {
    concatNodeLists();
    ASTNode tokens = popPseudoTokens(";");
    MethodDeclaration declareDecl = declarationFactory.createDeclareDeclaration(this.compilationUnit.compilationResult,tokens,this);
//    println("parsed declare: " + declare);
    display();
    pushOnAstStack(declareDecl);
  }
View Full Code Here

  }


  protected void consumeDeclareAnnotation(char kind) {
    concatNodeLists();
    ASTNode tokens = popPseudoTokens(";");

    int length;
    Annotation[] annotations = new Annotation[1]; // there should only ever be one for us...
      if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) {
        System.arraycopy(
View Full Code Here

    boolean isIdentifier) {
    intPtr -= popFromIntStack;

    int start = currentTokenStart;
    int end = start + value.length() - 1;
    ASTNode tok = declarationFactory.createPseudoToken(this, value, isIdentifier);
    tok.sourceStart = start;
    tok.sourceEnd = end;
    pushOnAstStack(tok);
  }
View Full Code Here

    int end = (int) pos;
    int start = (int) (pos >>> 32);
    char[] name = identifierStack[identifierPtr--];
    identifierLengthPtr--;

    ASTNode tok = declarationFactory.createPseudoToken(this, new String(name), true);
    tok.sourceStart = start;
    tok.sourceEnd = end;
    pushOnAstStack(tok);
  }
View Full Code Here

    Expression expr = (Expression) expressionStack[expressionPtr--];
    expressionLengthPtr--;
    println("expr: " + expr);

    int start = intStack[intPtr--];
    ASTNode tok = declarationFactory.createIfPseudoToken(this, expr);
    tok.sourceStart = start;
    tok.sourceEnd = this.rParenPos;
    pushOnAstStack(tok);
  }
View Full Code Here

  protected void consumePseudoTokenLiteral() {
    Literal literal = (Literal) expressionStack[expressionPtr--];
    expressionLengthPtr--;
    //System.out.println("literal: " + new String(literal.source()));

    ASTNode tok = declarationFactory.createPseudoToken(this, new String(literal.source()), false);
    declarationFactory.setLiteralKind(tok,"string");
    tok.sourceStart = literal.sourceStart;
    tok.sourceEnd = literal.sourceEnd;
    pushOnAstStack(tok);
  }
View Full Code Here

  }

  protected void consumePseudoTokenPrimitiveType() {
    TypeReference type = getTypeReference(0);

    ASTNode tok = declarationFactory.createPseudoToken(this, type.toString(), true);
    tok.sourceStart = type.sourceStart;
    tok.sourceEnd = type.sourceEnd;
    pushOnAstStack(tok);
  }
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode

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.