org.aspectj/tests/features160/annotationValueMatching/ShortValueMatching.java

18 lines
311 B
Java
Raw Normal View 히스토리

2008-02-25 22:28:33 +01:00
import java.lang.annotation.*;
public class ShortValueMatching {
public static void main(String[] args) { }
@Anno(sval=32700) public void methodOne() {}
@Anno(sval=27) public void methodTwo() {}
}
@interface Anno {
short sval();
}
aspect X {
before(): execution(@Anno(sval=32700) * *(..)) {}
}