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