## org.jmock.api
Class Invocation

    java.lang.Object
      org.jmock.api.Invocation

    public class Invocation

extends Object

The static details about a method and the run-time details of its invocation.

Since:
  1.0

Field Summary
`static Object[]` `NO_PARAMETERS`

Constructor Summary
`Invocation(Object invoked, Method method, Object... parameterValues)`

Method Summary
`Object` `applyTo(Object target)`
`void` `checkReturnTypeCompatibility(Object value)`
`void` `describeTo(Description description)`
`boolean` `equals(Invocation other)`
`boolean` `equals(Object other)`
`Method` `getInvokedMethod()`
`Object` `getInvokedObject()`
`Object` `getParameter(int i)`
`int` `getParameterCount()`
`Object[]` `getParametersAsArray()`
`int` `hashCode()`
`String` `toString()`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### NO_PARAMETERS

    public static final Object[] NO_PARAMETERS

Constructor Detail

### Invocation

    public Invocation(Object invoked,
                      Method method,
                      Object... parameterValues)

Method Detail

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### equals

    public boolean equals(Object other)

  Overrides:
    `equals` in class `Object`

### equals

    public boolean equals(Invocation other)

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `Object`

### describeTo

    public void describeTo(Description description)

### getInvokedObject

    public Object getInvokedObject()

### getInvokedMethod

    public Method getInvokedMethod()

### getParameterCount

    public int getParameterCount()

### getParameter

    public Object getParameter(int i)

### getParametersAsArray

    public Object[] getParametersAsArray()

### applyTo

    public Object applyTo(Object target)
                   throws Throwable

  Throws:
    `Throwable`

### checkReturnTypeCompatibility

    public void checkReturnTypeCompatibility(Object value)