| java.lang.Object abbot.script.Step abbot.script.Call
All known Subclasses: abbot.script.PropertyCall, abbot.script.Launch, abbot.script.Action,
Call | public class Call extends Step (Code) | | Class for script steps that want to invoke a method on a class.
Subclasses may override getMethod and getTarget to customize behavior.
<call method="..." args="..." class="...">
|
disambiguateMethod | protected Method disambiguateMethod(Method[] methods)(Code) | | Try to distinguish betwenn the given methods.
throws: IllegalArgumentException - indicating the appropriate targetmethod can't be distinguished. |
evaluateParameters | protected Object[] evaluateParameters(Method m, String[] params) throws Exception(Code) | | Convert the String representation of the arguments into actual
arguments.
|
getArgs | public String[] getArgs()(Code) | | Return the arguments as an array of String.
|
getArguments | public String[] getArguments()(Code) | | Return the arguments as an array of String.
|
getArgumentsDescription | protected String getArgumentsDescription()(Code) | | |
getAttributes | public Map getAttributes()(Code) | | Attributes to save in script.
|
getDefaultDescription | public String getDefaultDescription()(Code) | | |
getEncodedArguments | public String getEncodedArguments()(Code) | | Convert our argument vector into a single String.
|
getMethodName | public String getMethodName()(Code) | | Method name to save in script.
|
getTarget | protected Object getTarget(Method m) throws Throwable(Code) | | Return the target of the invocation. The default implementation
always returns null for static methods; it will attempt to instantiate
a target for non-static methods.
|
getTargetClass | public Class getTargetClass() throws ClassNotFoundException(Code) | | Get the class of the target of the method invocation. This is public
to provide editors access to the class being used (for example,
providing a menu of all available methods).
|
invoke | protected Object invoke() throws Throwable(Code) | | Make the target method invocation. This uses
evaluateParameters to convert the String representation
of the arguments into actual arguments.
Tries all matching methods of N arguments.
|
setArguments | public void setArguments(String[] args)(Code) | | Set the String representation of the arguments for this Call step.
|
setArguments | public void setArguments(String encodedArgs)(Code) | | Designate the arguments for this Call step. The format of this String
is a comma-separated list of String representations. See the
abbot.parsers package for supported String representations.
See Also: ArgumentParser.parseArgumentList See Also: for a description of the format. See Also: Call.setArguments(String[]) See Also: for the preferred method of indicating See Also: the argument list. |
setTargetClassName | public void setTargetClassName(String cn)(Code) | | |
|
|