소스 검색

pr194314: broken LV table, return arg name at shadow (for shadows where it makes sense)

tags/V1_5_4rc1
aclement 16 년 전
부모
커밋
65b66f474d
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12
    0
      weaver/src/org/aspectj/weaver/Shadow.java

+ 12
- 0
weaver/src/org/aspectj/weaver/Shadow.java 파일 보기

@@ -187,6 +187,18 @@ public abstract class Shadow {
return getSignature()
.getParameterTypes().length;
}
/**
* Return name of the argument at position 'i' at this shadow. This does not
* make sense for all shadows - but can be useful in the case of, for example,
* method-execution.
* @return null if it cannot be determined
*/
public String getArgName(int i,World w) {
String [] names = getSignature().getParameterNames(w);
if (names==null || i>=names.length) return null;
return names[i];
}
public abstract UnresolvedType getEnclosingType();


Loading…
취소
저장