@Override public void toStream(final DependencyContext context, final PrintStream stream) { super.toStream(context, stream); stream.print(" Arguments : "); for (TypeRepr.AbstractType t : myArgumentTypes) { stream.print(t.getDescr(context)); stream.print("; "); } stream.println(); final TypeRepr.AbstractType[] es = myExceptions.toArray(new TypeRepr.AbstractType[myExceptions.size()]); Arrays.sort( es, new Comparator<TypeRepr.AbstractType>() { @Override public int compare(final TypeRepr.AbstractType o1, final TypeRepr.AbstractType o2) { return o1.getDescr(context).compareTo(o2.getDescr(context)); } }); stream.print(" Exceptions : "); for (final TypeRepr.AbstractType e : es) { stream.print(e.getDescr(context)); stream.print("; "); } stream.println(); }
@Override public void save(final DataOutput out) { super.save(out); RW.save(myArgumentTypes, out); RW.save(myExceptions, out); }