432433434435436437438439440441442443444
Attribute getAttribute(String name) { List l = method.getAttributes(); Iterator i = l.iterator(); while(i.hasNext()) { Attribute a = (Attribute)i.next(); if (a != null) { // NOTE: Should never be null if (a.getName().equals(name)) { return a; } } }
170171172173174175176177178179180181182
List l = getAttributes(); Iterator i = l.iterator(); // ConstantPool cp = declaringClass.getConstantPool(); while(i.hasNext()) { Attribute a = (Attribute)i.next(); if (a.getName().equals(name)) { return a; } } return null;