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

Examples of org.aspectj.ajdt.internal.compiler.ast.AspectDeclaration$BodyGenerator


  public MessageSend createProceed(MessageSend m) {
    return new Proceed(m);
  }

  public TypeDeclaration createAspect(CompilationResult result) {
    return new AspectDeclaration(result);
  }
View Full Code Here


  public void setPrivileged(TypeDeclaration aspectDecl, boolean isPrivileged) {
    ((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

    // 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);
  }

  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 void unusedPrivateType(TypeDeclaration typeDecl) {
    // don't output unused type warnings for aspects!
    if (typeDecl instanceof AspectDeclaration)
      return;
    if (typeDecl.enclosingType != null && (typeDecl.enclosingType instanceof AspectDeclaration)) {
      AspectDeclaration ad = (AspectDeclaration) typeDecl.enclosingType;
      if (ad.concreteName != null) {
        List declares = ad.concreteName.declares;
        for (Iterator iter = declares.iterator(); iter.hasNext();) {
          Object dec = iter.next();
          if (dec instanceof DeclareParents) {
View Full Code Here

  /* (non-Javadoc)
   * @see org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory#createAspect(org.eclipse.jdt.internal.compiler.CompilationResult)
   */
  public TypeDeclaration createAspect(CompilationResult result) {
    return new AspectDeclaration(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

TOP

Related Classes of org.aspectj.ajdt.internal.compiler.ast.AspectDeclaration$BodyGenerator

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.