m_beforeAdviceNames = new String[advices.size()];
m_beforeAdviceIndexes = new IndexTuple[advices.size()];
int i = 0;
for (Iterator it = advices.iterator(); it.hasNext(); i++) {
try {
NameIndexTuple tuple = (NameIndexTuple)it.next();
m_beforeAdviceNames[i] = tuple.getName();
m_beforeAdviceIndexes[i] = tuple.getIndex();
} catch (ClassCastException e) {
throw new RuntimeException("advice list must only contain AdviceIndexTuples");
}
}
}