public class EffectorUtils
extends java.lang.Object
| Constructor and Description | 
|---|
| EffectorUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Maybe<Effector<?>> | findEffector(java.util.Collection<? extends Effector<?>> effectors,
            java.lang.String effectorName)matches effectors by name only (not parameters) | 
| static Maybe<Effector<?>> | findEffectorDeclared(Entity entity,
                    java.lang.String effectorName)matches effectors by name only (not parameters), based on what is declared on the entity static type | 
| static Effector<?> | findEffectorMatching(Entity entity,
                    java.lang.reflect.Method method)Deprecated. 
 since 0.7.0, not used | 
| static Effector<?> | findEffectorMatching(java.util.Set<Effector<?>> effectors,
                    java.lang.String effectorName,
                    java.util.Map<java.lang.String,?> parameters)Deprecated. 
 since 0.7.0, expects parameters but does not use them! | 
| static java.util.Map<java.lang.Object,java.lang.Object> | getTaskFlagsForEffectorInvocation(Entity entity,
                                 Effector<?> effector)Deprecated. 
 since 0.7.0 use  getTaskFlagsForEffectorInvocation(Entity, Effector, ConfigBag) | 
| static java.util.Map<java.lang.Object,java.lang.Object> | getTaskFlagsForEffectorInvocation(Entity entity,
                                 Effector<?> effector,
                                 ConfigBag parameters)returns a (mutable) map of the standard flags which should be placed on an effector | 
| static void | handleEffectorException(Entity entity,
                       Effector<?> effector,
                       java.lang.Throwable throwable) | 
| static <T> Task<T> | invokeEffectorAsync(Entity entity,
                   Effector<T> eff,
                   java.util.Map<java.lang.String,?> parameters) | 
| static <T> T | invokeMethodEffector(Entity entity,
                    Effector<T> eff,
                    java.lang.Object[] args)Invokes a method effector so that its progress is tracked. | 
| static java.lang.Object[] | oldPrepareArgsForEffector(Effector<?> eff,
                         java.lang.Object args)Takes arguments, and returns an array of arguments suitable for use by the Effector
 according to the ParameterTypes it exposes. | 
| static java.lang.Object[] | prepareArgsForEffector(Effector<?> eff,
                      java.lang.Object args)prepares arguments for an effector either accepting:
  an array, which should contain the arguments in order, optionally omitting those which have defaults defined;
  or a map, which should contain the arguments by name, again optionally omitting those which have defaults defined,
  and in this case also performing type coercion. | 
| static java.util.Map | prepareArgsForEffectorAsMapFromArray(Effector<?> eff,
                                    java.lang.Object[] args) | 
public static java.lang.Object[] prepareArgsForEffector(Effector<?> eff, java.lang.Object args)
public static java.util.Map prepareArgsForEffectorAsMapFromArray(Effector<?> eff, java.lang.Object[] args)
public static java.lang.Object[] oldPrepareArgsForEffector(Effector<?> eff, java.lang.Object args)
The args can be:
public static <T> T invokeMethodEffector(Entity entity, Effector<T> eff, java.lang.Object[] args)
public static void handleEffectorException(Entity entity, Effector<?> effector, java.lang.Throwable throwable)
public static <T> Task<T> invokeEffectorAsync(Entity entity, Effector<T> eff, java.util.Map<java.lang.String,?> parameters)
@Deprecated public static Effector<?> findEffectorMatching(Entity entity, java.lang.reflect.Method method)
@Deprecated public static Effector<?> findEffectorMatching(java.util.Set<Effector<?>> effectors, java.lang.String effectorName, java.util.Map<java.lang.String,?> parameters)
public static Maybe<Effector<?>> findEffector(java.util.Collection<? extends Effector<?>> effectors, java.lang.String effectorName)
public static Maybe<Effector<?>> findEffectorDeclared(Entity entity, java.lang.String effectorName)
public static java.util.Map<java.lang.Object,java.lang.Object> getTaskFlagsForEffectorInvocation(Entity entity, Effector<?> effector)
getTaskFlagsForEffectorInvocation(Entity, Effector, ConfigBag)