summaryrefslogtreecommitdiffstats
path: root/bcel-builder
diff options
context:
space:
mode:
authoraclement <aclement>2008-01-25 02:28:23 +0000
committeraclement <aclement>2008-01-25 02:28:23 +0000
commit40fd12cb97f724d5e56008924a5433c0f76638da (patch)
tree09da8ab5b39cd10e6cef486b20ae5578d06697ba /bcel-builder
parentbfa7f3836720f04e410eeb00ccdaf7822dcbb497 (diff)
downloadaspectj-40fd12cb97f724d5e56008924a5433c0f76638da.tar.gz
aspectj-40fd12cb97f724d5e56008924a5433c0f76638da.zip
paramannos: obtain all the annotations together
Diffstat (limited to 'bcel-builder')
-rw-r--r--bcel-builder/src/org/aspectj/apache/bcel/classfile/Method.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/classfile/Method.java b/bcel-builder/src/org/aspectj/apache/bcel/classfile/Method.java
index 56ff334e5..d54ddc62f 100644
--- a/bcel-builder/src/org/aspectj/apache/bcel/classfile/Method.java
+++ b/bcel-builder/src/org/aspectj/apache/bcel/classfile/Method.java
@@ -69,7 +69,7 @@ import org.aspectj.apache.bcel.generic.Type;
* for a method in the class. See JVM specification for details.
* A method has access flags, a name, a signature and a number of attributes.
*
- * @version $Id: Method.java,v 1.2 2004/11/19 16:45:18 aclement Exp $
+ * @version $Id: Method.java,v 1.3 2008/01/25 02:28:23 aclement Exp $
* @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
*/
public final class Method extends FieldOrMethod {
@@ -280,4 +280,13 @@ public final class Method extends FieldOrMethod {
return complete;
}
+ public Annotation[][] getParameterAnnotations() {
+ int numParams = getArgumentTypes().length;
+ Annotation[][] parameterAnnotations = new Annotation[getArgumentTypes().length][];
+ for (int i=0; i<numParams; i++) {
+ parameterAnnotations[i] = getAnnotationsOnParameter(i);
+ }
+ return parameterAnnotations;
+ }
+
}