1 / 4

Analysis Aspects

Analysis Aspects. Deters and Cytron propose to use analysis aspects to get profiling information from running Java programs.

ross-norris
Télécharger la présentation

Analysis Aspects

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. Analysis Aspects • Deters and Cytron propose to use analysis aspects to get profiling information from running Java programs. • We explore the design issues behind analysis aspects and show, by example, how to write an interesting aspect-oriented framework that measures bad coupling between objects/aspects.

  2. Decoupling of Aspects • Four aspects: Supplier, TargetBinStack, Checker and Statistics are an aspect-oriented framework. • Customization is done by defining subaspects of Supplier and TargetBinStack. • Decoupling of aspects is achieved through • abstract pointcuts and • Named, concrete pointcuts that are “exported”.

  3. Instrumentation of Java programs with Aspects Aspect framework Aspect Diagram Supplier ImmediatePartBin TargetBinStack ArgumentBin Checker LocallyConstructedBin uses pointcuts ReturnValueBin Requirements: Statistics GlobalPreferredBin Good Separation of Concerns in Law of Demeter Checker http://www.ccs.neu.edu/home/lieber/com3205/f02/solutions/com3205/hw04/ (part 3)

  4. Explanation • The *bin* aspects collect potential preferred supplier objects that represent good coupling in the context of a method body. • The Checker aspect checks each method call whether the receiver is a preferred supplier object. • The Statistics aspect counts events generated by the Checker aspect.

More Related