summaryrefslogtreecommitdiffstats
path: root/tests/ajde/examples/figures-cacm/figures/FactoryEnforcement.java
blob: a5ff5b5ec3eb3250e6f56343ea4034441236216a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package figures;

aspect FactoryEnforcement {

    pointcut illegalNewFigElt():  call(FigureElement+.new(..)) &&
	                         !withincode(* Figure.make*(..));

    declare error: illegalNewFigElt():
	"Illegal figure element constructor call.";

}