Interface Machine<TContract>


@JsType(isNative=true, name="ng.Machine", namespace="<global>") public interface Machine<TContract>
Public AngularTS Machine contract exposed through the global ng namespace for Closure-annotated applications.
  • Method Summary

    Modifier and Type
    Method
    Description
    <TType> boolean
    can(TType type, Object... var_args)
    Public Machine.can member exposed by the AngularTS namespace contract.
    Public Machine.data member exposed by the AngularTS namespace contract.
    Public Machine.state member exposed by the AngularTS namespace contract.
    boolean
    matches(Object state)
    Public Machine.matches member exposed by the AngularTS namespace contract.
    void
    restore(Object snapshot)
    Public Machine.restore member exposed by the AngularTS namespace contract.
    <TType> Object
    send(TType type, Object... var_args)
    Public Machine.send member exposed by the AngularTS namespace contract.
    void
    Public Machine.data member exposed by the AngularTS namespace contract.
    void
    Public Machine.state member exposed by the AngularTS namespace contract.
    Public Machine.snapshot member exposed by the AngularTS namespace contract.
  • Method Details

    • can

      <TType> boolean can(TType type, Object... var_args)
      Public Machine.can member exposed by the AngularTS namespace contract.
      Parameters:
      type - Value supplied for the type parameter.
      var_args - Value supplied for the payload parameter.
      Returns:
      Method result.
    • getData

      @JsProperty Object getData()
      Public Machine.data member exposed by the AngularTS namespace contract.
    • getState

      @JsProperty Object getState()
      Public Machine.state member exposed by the AngularTS namespace contract.
    • matches

      boolean matches(Object state)
      Public Machine.matches member exposed by the AngularTS namespace contract.
      Parameters:
      state - Value supplied for the state parameter.
      Returns:
      Method result.
    • restore

      void restore(Object snapshot)
      Public Machine.restore member exposed by the AngularTS namespace contract.
      Parameters:
      snapshot - Value supplied for the snapshot parameter.
    • send

      <TType> Object send(TType type, Object... var_args)
      Public Machine.send member exposed by the AngularTS namespace contract.
      Parameters:
      type - Value supplied for the type parameter.
      var_args - Value supplied for the payload parameter.
      Returns:
      Method result.
    • setData

      @JsProperty void setData(Object data)
      Public Machine.data member exposed by the AngularTS namespace contract.
    • setState

      @JsProperty void setState(Object state)
      Public Machine.state member exposed by the AngularTS namespace contract.
    • snapshot

      Public Machine.snapshot member exposed by the AngularTS namespace contract.
      Returns:
      Method result.