Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jmock.api
Class Invocation

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

All Implemented Interfaces:
  SelfDescribing

    public class Invocation

extends Object
implements SelfDescribing

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)` Generates a description of the object.
`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)

  Description copied from interface: `SelfDescribing`
  Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.

  Specified by:
    `describeTo` in interface `SelfDescribing`
  Parameters:
    `description` - The description to be built or appended to.

### 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)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD