1 / 6

General AOP: Join Point Model

General AOP: Join Point Model. Set of all join points. A mechanism to express subsets of join points. A mechanism to express advice on subsets of join points. Sets of join points. AspectJ’s set of join points: JPTA = <jp> JoinPoint <children> List(JPTA).

Télécharger la présentation

General AOP: Join Point Model

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. General AOP: Join Point Model • Set of all join points. • A mechanism to express subsets of join points. • A mechanism to express advice on subsets of join points.

  2. Sets of join points • AspectJ’s set of join points: • JPTA = <jp> JoinPoint <children> List(JPTA). • JoinPoint : Call | Execution | Get | Set | … • Our set of join points: JPT, dynamic JPT, lexical JPT. • JPT = <jp> JoinPoint <children> List(JPT). • JoinPoint = /* message send */ <target> ID <args> List(ID) <returning> ID.

  3. Sets of Join Points • Dynamic JPT: ID = object • Lexical JPT: ID = class

  4. Pattern Matching in Join Point Trees JPT = <jp> JoinPoint <children> List(JPT). JoinPoint = <target> ID <args> List(ID) <returning> ID <name> JPName. ID = Ident. JPName = Ident. target=T, enclosing.target=T, args=(X,Y), name = foo target(T), this(T), args(X,Y), call(* foo(..))

  5. Simple exercise • Given a Java program and an input, print the corresponding join point tree.

  6. What can we do with join point trees? • Define interesting sets

More Related