public class BshScriptWrapper extends Object
Constructor and Description |
---|
BshScriptWrapper(Object stub,
String scriptPath)
StubClass is always the generated class (not any subclasses),
while stub may be an instance of a subclassed scripted class.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
copyProperties(Object from,
Object to)
Copies all properties from the given
from instance to the given
to instance. |
Object |
invoke(String methodName,
Object[] args)
Invokes the method with the given
methodName on the instance. |
public BshScriptWrapper(Object stub, String scriptPath) throws InstantiationError
stub
- scriptPath
- InstantiationError
public Object invoke(String methodName, Object[] args)
methodName
on the instance.methodName
- the name of the method to invoke.args
- the arguments to pass to the method.protected static void copyProperties(Object from, Object to) throws Exception
from
instance to the given
to
instance.from
- the instance from which to copy all properties.to
- the instance of which to copy all properties.Exception
Copyright © 2003–2014 AndroMDA.org. All rights reserved.