All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aspectj.weaver.patterns.TraceVisitor Maven / Gradle / Ivy

Go to download

The AspectJ weaver applies aspects to Java classes. It can be used as a Java agent in order to apply load-time weaving (LTW) during class-loading and also contains the AspectJ runtime classes.

There is a newer version: 1.9.22.1
Show newest version
package org.aspectj.weaver.patterns;

public class TraceVisitor implements PatternNodeVisitor {
  protected static PatternNode dump(PatternNode node) {
    System.out.println("class = " + node.getClass().getSimpleName() + ", node = " + node);
    return node;
  }

  @Override
  public Object visit(AndAnnotationTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(AnyAnnotationTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(EllipsisAnnotationTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(ExactAnnotationTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(BindingAnnotationTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(NotAnnotationTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(OrAnnotationTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(WildAnnotationTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(AnnotationPatternList node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(AndTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(AnyTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(AnyWithAnnotationTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(EllipsisTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(ExactTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(BindingTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(NotTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(NoTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(OrTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(WildTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(TypePatternList node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(HasMemberTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(TypeCategoryTypePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(AndPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(CflowPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(ConcreteCflowPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(HandlerPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(IfPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(KindedPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(Pointcut.MatchesNothingPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(AnnotationPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(ArgsAnnotationPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(ArgsPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(ThisOrTargetAnnotationPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(ThisOrTargetPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(WithinAnnotationPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(WithinCodeAnnotationPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(NotPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(OrPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(ReferencePointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(WithinPointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(WithincodePointcut node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(PerCflow node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(PerFromSuper node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(PerObject node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(PerSingleton node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(PerTypeWithin node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(DeclareAnnotation node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(DeclareErrorOrWarning node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(DeclareParents node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(DeclarePrecedence node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(DeclareSoft node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(ModifiersPattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(NamePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(SignaturePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(ThrowsPattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(TypeVariablePattern node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(TypeVariablePatternList node, Object data) {
    return dump(node);
  }

  @Override
  public Object visit(PatternNode node, Object data) {
    return dump(node);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy