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

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


    ((AspectDeclaration) aspectDecl).isPrivileged = isPrivileged;
  }

  public void setPerClauseFrom(TypeDeclaration aspectDecl, ASTNode pseudoTokens, Parser parser) {
    AspectDeclaration aspect = (AspectDeclaration) aspectDecl;
    PseudoTokens tok = (PseudoTokens) pseudoTokens;
    aspect.perClause = tok.parsePerClause(parser);
    // For the ast support: currently the below line is not finished! The start is set incorrectly
    ((AspectDeclaration) aspectDecl).perClause.setLocation(null, 1, parser.getCurrentTokenStart() + 1);
  }
View Full Code Here


    ((AspectDeclaration) aspectDecl).perClause.setLocation(null, 1, parser.getCurrentTokenStart() + 1);
  }

  public void setDominatesPatternFrom(TypeDeclaration aspectDecl, ASTNode pseudoTokens, Parser parser) {
    AspectDeclaration aspect = (AspectDeclaration) aspectDecl;
    PseudoTokens tok = (PseudoTokens) pseudoTokens;
    aspect.dominatesPattern = tok.maybeParseDominatesPattern(parser);
  }
View Full Code Here

  public ASTNode createPseudoTokensFrom(ASTNode[] tokens, CompilationResult result) {
    PseudoToken[] psts = new PseudoToken[tokens.length];
    for (int i = 0; i < psts.length; i++) {
      psts[i] = (PseudoToken) tokens[i];
    }
    return new PseudoTokens(psts, new EclipseSourceContext(result));
  }
View Full Code Here

  /* (non-Javadoc)
   * @see org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory#setPerClauseFrom(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration, org.eclipse.jdt.internal.compiler.ast.ASTNode)
   */
  public void setPerClauseFrom(TypeDeclaration aspectDecl, ASTNode pseudoTokens, Parser parser) {
    AspectDeclaration aspect = (AspectDeclaration) aspectDecl;
    PseudoTokens tok = (PseudoTokens) pseudoTokens;
    aspect.perClause = tok.parsePerClause(parser);
    // For the ast support: currently the below line is not finished! The start is set incorrectly
    ((AspectDeclaration)aspectDecl).perClause.setLocation(null,1,parser.getCurrentTokenStart()+1);
  }
View Full Code Here

  /* (non-Javadoc)
   * @see org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory#setDominatesPatternFrom(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration, org.eclipse.jdt.internal.compiler.ast.ASTNode)
   */
  public void setDominatesPatternFrom(TypeDeclaration aspectDecl, ASTNode pseudoTokens, Parser parser) {
    AspectDeclaration aspect = (AspectDeclaration) aspectDecl;
    PseudoTokens tok = (PseudoTokens) pseudoTokens;
    aspect.dominatesPattern = tok.maybeParseDominatesPattern(parser);
  }
View Full Code Here

  public ASTNode createPseudoTokensFrom(ASTNode[] tokens, CompilationResult result) {
    PseudoToken[] psts = new PseudoToken[tokens.length];
    for (int i = 0; i < psts.length; i++) {
      psts[i] = (PseudoToken)tokens[i];
    }
    return new PseudoTokens(psts,new EclipseSourceContext(result));
  }
View Full Code Here

TOP

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

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.