public void handleMethod( String className, String methodName, int access, String params, String signature, String[] exceptions, String annotation, List<Value> values) { assertTrue("org.eclipse.jetty.annotations.ClassB".equals(className)); assertTrue("a".equals(methodName)); for (Value anv : values) { System.err.println(anv.toString()); } }
public void handleClass( String className, int version, int access, String signature, String superName, String[] interfaces, String annotation, List<Value> values) { assertTrue("org.eclipse.jetty.annotations.ClassB".equals(className)); for (Value anv : values) { System.err.println(anv.toString()); } }
public void handleField( String className, String fieldName, int access, String fieldType, String signature, Object value, String annotation, List<Value> values) { assertEquals("m", fieldName); assertEquals( org.objectweb.asm.Type.OBJECT, org.objectweb.asm.Type.getType(fieldType).getSort()); assertEquals(1, values.size()); Value anv1 = values.get(0); assertEquals("value", anv1.getName()); assertEquals(7, anv1.getValue()); }