[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-dev] how hard it is to introduce a new kind of pointcut inaspectj?

Hi.

Generally it's not that hard using the AspectBench compiler, Wes mentioned
already (given you have some basic knowledge about compiler construction). 
However, with respect to loops, such an extension already exists in the form
of "LoopsAJ" - http://www.cs.manchester.ac.uk/cnc/projects/loopsaj/. This
actually *is* an extension to the AspectBench Compiler.

However, I am not sure what you mean by "the 'new' bytecode". Is that not
something that can be captured by call(WhatEverType.new(..)) ?

Eric


lingli zhang wrote:
> Hi,
> 
> I am newbie of aspectj. I am wondering how hard it is to introduce a
> new kind of pointcut into the current aspectj project. For example,
> if I want to match the "new" bytecode, or if I want to match some
> sort of loop structures, I need to introduce "new()" or "loop()" to
> the syntax of the pointcut. Is there any grammar file I should
> change, where is the scanner and parser files? Can anyone point me to
> some example or a starting point to do it?      
> 
> Thanks a lot!
> Lingli
> 
> 

-- 
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University