org.omnaest.utils.proxy
Class MethodCallCapturer.MethodCallCaptureContext

java.lang.Object
  extended by org.omnaest.utils.proxy.MethodCallCapturer.MethodCallCaptureContext
Enclosing class:
MethodCallCapturer

public static class MethodCallCapturer.MethodCallCaptureContext
extends Object

Container class for the absolute canonical method name when a MethodCallCapture instance has been captured.

Author:
Omnaest
See Also:
MethodCallCapturer

Field Summary
protected  MethodCallCapture methodCallCapture
           
protected  MethodCallCapturer.MethodCallCaptureContext previousMethodCallCaptureContext
           
protected  Object returnedStub
           
 
Constructor Summary
MethodCallCapturer.MethodCallCaptureContext(MethodCallCapture methodCallCapture, MethodCallCapturer.MethodCallCaptureContext previousMethodCallCaptureContext)
           
 
Method Summary
 List<MethodCallCapture> determineCanonicalMethodCallCaptures(Object rootStub)
          Returns the canonical list of MethodCallCaptures from the given root stub as base.
 String determineCanonicalMethodName(Object rootStub)
          Returns the canonical method name relative to the given root stub object
 String determineCanonicalPropertyName(Object rootStub)
          Returns the canonical property name relative to the given root stub object
 MethodCallCapture getMethodCallCapture()
           
 MethodCallCapturer.MethodCallCaptureContext getPreviousMethodCallCaptureContext()
           
protected  Object getReturnedStub()
          Gets the stub object returned by the captured method call.
 Object getStub()
          Returns the stub for which this MethodCallCapturer.MethodCallCaptureContext was created for one of its methods called.
 List<Object> getStubList()
          Returns the stub objects which have been invoked to produce this MethodCallCapturer.MethodCallCaptureContext.
protected  void setReturnedStub(Object returnedStub)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodCallCapture

protected MethodCallCapture methodCallCapture

previousMethodCallCaptureContext

protected MethodCallCapturer.MethodCallCaptureContext previousMethodCallCaptureContext

returnedStub

protected Object returnedStub
Constructor Detail

MethodCallCapturer.MethodCallCaptureContext

public MethodCallCapturer.MethodCallCaptureContext(MethodCallCapture methodCallCapture,
                                                   MethodCallCapturer.MethodCallCaptureContext previousMethodCallCaptureContext)
Method Detail

getMethodCallCapture

public MethodCallCapture getMethodCallCapture()

determineCanonicalMethodCallCaptures

public List<MethodCallCapture> determineCanonicalMethodCallCaptures(Object rootStub)
Returns the canonical list of MethodCallCaptures from the given root stub as base.

Parameters:
rootStub -
Returns:

determineCanonicalMethodName

public String determineCanonicalMethodName(Object rootStub)
Returns the canonical method name relative to the given root stub object

Returns:

determineCanonicalPropertyName

public String determineCanonicalPropertyName(Object rootStub)
Returns the canonical property name relative to the given root stub object

Returns:

getStub

public Object getStub()
Returns the stub for which this MethodCallCapturer.MethodCallCaptureContext was created for one of its methods called.

Returns:

getStubList

public List<Object> getStubList()
Returns the stub objects which have been invoked to produce this MethodCallCapturer.MethodCallCaptureContext.

Returns:

getReturnedStub

protected Object getReturnedStub()
Gets the stub object returned by the captured method call.

Returns:

setReturnedStub

protected void setReturnedStub(Object returnedStub)

getPreviousMethodCallCaptureContext

public MethodCallCapturer.MethodCallCaptureContext getPreviousMethodCallCaptureContext()


Copyright © 2013. All Rights Reserved.