CodeSignature in aspectJ是什么?我试图找到JavaDocs,但没有发现任何有用的东西。例如,您的签名如下所示为CodeSignature:
pointcut log() : execution(@Log * *(..));
before() : log() {
String[] names = ((CodeSignature) thisJoinPoint.getSignature()).getParameterNames();
}
是否有一个JoinPoint,使thisJoinPoint.getSignature()
不是一个CodeSignature
发布于 2015-08-05 09:10:00
CodeSignature表示连接点捕获的代码块。它可以是方法、构造函数、初始化器(静态的或非静态的)或通知。有些连接点的签名不是CodeSignature
。例如,字段集和字段get的连接点(签名为FieldSignature )和catch子句的连接点具有一个CatchClauseSignature。
签名提供对调用连接点的信息的访问。
https://stackoverflow.com/questions/31826733
复制相似问题