| java.lang.Object org.andromda.scriptwrappers.GroovyScriptWrapper
GroovyScriptWrapper | public class GroovyScriptWrapper (Code) | | This is a wrapper class for a Groovy script. The generated Java classes contain a private
final copy of this wrapper and delegates all methods to this class so that their Groovy-counterparts
can be executed.
author: Chad Brandon |
Constructor Summary | |
public | GroovyScriptWrapper(Object stub, String scriptPath) StubClass is always the generated class (not any subclasses),
while stub may be an instance of a subclassed scripted class. |
Method Summary | |
public Object | invoke(String methodName, Object[] args) Invokes the method with the given methodName on the instance.
Parameters: methodName - the name of the method to invoke. Parameters: args - the arguments to pass to the method. |
GroovyScriptWrapper | public GroovyScriptWrapper(Object stub, String scriptPath) throws java.lang.InstantiationError(Code) | | StubClass is always the generated class (not any subclasses),
while stub may be an instance of a subclassed scripted class.
|
invoke | public Object invoke(String methodName, Object[] args)(Code) | | Invokes the method with the given methodName on the instance.
Parameters: methodName - the name of the method to invoke. Parameters: args - the arguments to pass to the method. the return result of invoking the operation. |
|
|