* @param sc The SpeedoClass under construction.
* @param listener The listener class if the callback belongs to such a class.
*/
private void parseCallBacks(Method[] meths, SpeedoClass sc, Class listener) {
// Look for callback methods
SpeedoCallback scb = null;
for (Method m : meths) {
int i = 0;
for (Class annotc : CBCLASSES) {
if (m.getAnnotation(annotc) == null) {
i++;
continue;
}
ArrayList cbl = (ArrayList) sc.callBacks.get(CBIDS[i]);
if (scb == null) {
scb = new SpeedoCallback();
}
if (cbl != null) {
logger.log(BasicLevel.WARN, sc.getSourceDescShort() + ": "
+ CBNAMES[i] + " callback - "
+ "already defined.");