我有以下方法,现在返回最后一个条目,但是如何发送注释列表?
我想从循环中返回所有注释列表
public EList<Annotation> getAnnotation()
{
EList<Annotation> annotations = null;
for (Sc currSc : sche)
{
for (EntityS entitys : ent)
{
// Get annotation
annotations = entitys.getAnnotations();
}
}
return annotations;
}