/** * Return whether the given annotations match our candidates. */ private boolean matchAnnotations(ConstantPoolTable table, int idx) { int annos = table.readUnsignedShort(idx); idx += 2; int type; int props; for (int i = 0; i < annos; i++) { type = table.readUnsignedShort(idx); idx += 2; if (matchAnnotation(table.readString(table.get(type)))) return true; props = table.readUnsignedShort(idx); idx += 2; for (int j = 0; j < props; j++) { idx += 2; // name idx += skipAnnotationPropertyValue(table, idx); } } return false; }
/** * Return whether the given annotations match our candidates. */ private boolean matchAnnotations(ConstantPoolTable table, int idx) { int annos = table.readUnsignedShort(idx); idx += 2; int type; int props; for (int i = 0; i < annos; i++) { type = table.readUnsignedShort(idx); idx += 2; if (matchAnnotation(table.readString(table.get(type)))) return true; props = table.readUnsignedShort(idx); idx += 2; for (int j = 0; j < props; j++) { idx += 2; // name idx += skipAnnotationPropertyValue(table, idx); } } return false; }
/** * Return whether the given annotations match our candidates. */ private boolean matchAnnotations(ConstantPoolTable table, int idx) { int annos = table.readUnsignedShort(idx); idx += 2; int type; int props; for (int i = 0; i < annos; i++) { type = table.readUnsignedShort(idx); idx += 2; if (matchAnnotation(table.readString(table.get(type)))) return true; props = table.readUnsignedShort(idx); idx += 2; for (int j = 0; j < props; j++) { idx += 2; // name idx += skipAnnotationPropertyValue(table, idx); } } return false; }
/** * Return whether the given annotations match our candidates. */ private boolean matchAnnotations(ConstantPoolTable table, int idx) { int annos = table.readUnsignedShort(idx); idx += 2; int type; int props; for (int i = 0; i < annos; i++) { type = table.readUnsignedShort(idx); idx += 2; if (matchAnnotation(table.readString(table.get(type)))) return true; props = table.readUnsignedShort(idx); idx += 2; for (int j = 0; j < props; j++) { idx += 2; // name idx += skipAnnotationPropertyValue(table, idx); } } return false; }