ActionArgumentEvent

Supported only by WrapperFactory , represents a check as to whether a particular argument for an action is valid or not.

If #getReason() is not null then provides the reason why the argument is invalid; otherwise the argument is valid.

Called once per argument, and before ActionInvocationEvent .

API

ActionArgumentEvent.java
class ActionArgumentEvent {
  ActionArgumentEvent(Object source, Identifier actionIdentifier, Object[] args, int position)
  Object[] getArgs()
  int getPosition()     (1)
  Object getProposed()
  String getReasonMessage()
}
1 getPosition()

The position (0-based) of the invalid argument.

Members

getPosition()

The position (0-based) of the invalid argument.