public static void setPropertyOnSuperSpreadSafe( Object messageArgument, Class senderClass, GroovyObject receiver, String messageName) throws Throwable { for (Iterator it = InvokerHelper.asIterator(receiver); it.hasNext(); ) { setPropertySafe(messageArgument, senderClass, it.next(), messageName); } }
public static Object getPropertyOnSuperSpreadSafe( Class senderClass, GroovyObject receiver, String messageName) throws Throwable { List answer = new ArrayList(); for (Iterator it = InvokerHelper.asIterator(receiver); it.hasNext(); ) { answer.add(getPropertySafe(senderClass, it.next(), messageName)); } return answer; }
public static void setGroovyObjectFieldSpreadSafe( Object messageArgument, Class senderClass, GroovyObject receiver, String messageName) throws Throwable { if (receiver == null) return; for (Iterator it = InvokerHelper.asIterator(receiver); it.hasNext(); ) { setFieldSafe(messageArgument, senderClass, it.next(), messageName); } }
public static Object getFieldSpreadSafe(Class senderClass, Object receiver, String messageName) throws Throwable { if (receiver == null) return null; List answer = new ArrayList(); for (Iterator it = InvokerHelper.asIterator(receiver); it.hasNext(); ) { answer.add(getFieldSafe(senderClass, it.next(), messageName)); } return answer; }
public static Object invokeMethodOnSuperNSpreadSafe( Class senderClass, GroovyObject receiver, String messageName, Object[] messageArguments) throws Throwable { List answer = new ArrayList(); for (Iterator it = InvokerHelper.asIterator(receiver); it.hasNext(); ) { answer.add(invokeMethodNSafe(senderClass, it.next(), messageName, messageArguments)); } return answer; }