我正在使用以下脚本使用索引从一组输入对象中选择一个对象。它不承认输入参数是一组三个值。我假设我在这条线上做错了什么:
if(setOfObjects instanceof java.util.Collection)
if(setOfObjects != null)
{
if(setOfObjects instanceof java.util.Collection)
{
object = setOfObjects.get(index);
if (object instanceof fUML.Semantics.Classes.Kernel.Object_)
{
fUML.Semantics.Classes.Kernel.Reference r = new fUML.Semantics.Classes.Kernel.Reference(object.getOwner());
r.setReferent(object);
object = r;
}
}
Else print(index);
if(index == 1)
{
print("ok");
object = setOfObjects;
}
else
{
print("failed");
object = null;
}
}
else
{
object = null;
}