org.eclipse.swtbot.swt.finder.utils.internal
Class ReflectionInvoker

java.lang.Object
  extended by org.eclipse.swtbot.swt.finder.utils.internal.ReflectionInvoker
All Implemented Interfaces:
Result<String>, StringResult

public final class ReflectionInvoker
extends Object
implements StringResult

This is an object use to invoke a method using reflections.

Author:
Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>

Constructor Summary
ReflectionInvoker(Object o, String methodName)
          Constructs this object.
 
Method Summary
 String run()
          Runs the processing to trigger the method to be invoked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionInvoker

public ReflectionInvoker(Object o,
                         String methodName)
Constructs this object.

Parameters:
o - the object to be invoked on.
methodName - the method to invoke on the object.
Method Detail

run

public String run()
Runs the processing to trigger the method to be invoked.

Specified by:
run in interface Result<String>
Returns:
The results of the invoke.
See Also:
Result.run()