class MyExtension extends DefaultAspect
{
Crosscut c1 = new MethodCut()
{
public void METHOD_ARGS(ANY thisO,REST params) {}
}
Crosscut c2 = new MethodCut{}
{
public void adviceMethod(Object thisO, Object[] parms){}
}.specializeWith( ( MethodS.BEFORE1) .AND
( MethodS.named("Foo")) );
}
would produce an extension which returns a list of two crosscuts