Examples of AdviceDeclaration


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

public class AsmElementFormatter {

  public void genLabelAndKind(MethodDeclaration methodDeclaration, IProgramElement node) {

    if (methodDeclaration instanceof AdviceDeclaration) {
      AdviceDeclaration ad = (AdviceDeclaration) methodDeclaration;
      node.setKind(IProgramElement.Kind.ADVICE);

      if (ad.kind == AdviceKind.Around) {
        node.setCorrespondingType(ad.returnType.toString()); // returnTypeToString(0));
      }
View Full Code Here

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

  public MethodDeclaration createPointcutDeclaration(CompilationResult result) {
    return new PointcutDeclaration(result);
  }

  public MethodDeclaration createAroundAdviceDeclaration(CompilationResult result) {
    return new AdviceDeclaration(result, AdviceKind.Around);
  }
View Full Code Here

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

  public MethodDeclaration createAroundAdviceDeclaration(CompilationResult result) {
    return new AdviceDeclaration(result, AdviceKind.Around);
  }

  public MethodDeclaration createAfterAdviceDeclaration(CompilationResult result) {
    return new AdviceDeclaration(result, AdviceKind.After);
  }
View Full Code Here

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

  public MethodDeclaration createAfterAdviceDeclaration(CompilationResult result) {
    return new AdviceDeclaration(result, AdviceKind.After);
  }

  public MethodDeclaration createBeforeAdviceDeclaration(CompilationResult result) {
    return new AdviceDeclaration(result, AdviceKind.Before);
  }
View Full Code Here

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

  /* (non-Javadoc)
   * @see org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory#createAroundAdviceDeclaration(org.eclipse.jdt.internal.compiler.CompilationResult)
   */
  public MethodDeclaration createAroundAdviceDeclaration(CompilationResult result) {
    return new AdviceDeclaration(result,AdviceKind.Around);
  }
View Full Code Here

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

  /* (non-Javadoc)
   * @see org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory#createAfterAdviceDeclaration(org.eclipse.jdt.internal.compiler.CompilationResult)
   */
  public MethodDeclaration createAfterAdviceDeclaration(CompilationResult result) {
    return new AdviceDeclaration(result,AdviceKind.After);
  }
View Full Code Here

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

  /* (non-Javadoc)
   * @see org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory#createBeforeAdviceDeclaration(org.eclipse.jdt.internal.compiler.CompilationResult)
   */
  public MethodDeclaration createBeforeAdviceDeclaration(CompilationResult result) {
    return new AdviceDeclaration(result,AdviceKind.Before);
  }
View Full Code Here

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

  public static final String DEC_LABEL = "declare";

  public void genLabelAndKind(MethodDeclaration methodDeclaration, IProgramElement node) {
   
    if (methodDeclaration instanceof AdviceDeclaration) {
      AdviceDeclaration ad = (AdviceDeclaration)methodDeclaration;
      node.setKind(IProgramElement.Kind.ADVICE);

      if (ad.kind == AdviceKind.Around) {
        node.setCorrespondingType(ad.returnType.toString()); //returnTypeToString(0));
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.