public static IActionType<?> getType(String script) {
        for (IActionType<?> actionType : instance) {
            if (actionType.matches(script)) {
                return actionType;
            }
        }

        throw new IllegalArgumentException("Script type was not recognized: " + script);
    }
public static IActionType < ? > getType ( String script ) { for ( IActionType < ? > actionType : instance ) { if ( actionType . matches ( script ) ) { return actionType ; } } throw new IllegalArgumentException ( "Script type was not recognized: " + script ) ; }
Returns the action type given a script.

@param script The action script.
@return The action type, or an exception if a matching action was not found.