public class ObjectMethod extends Object
Modifier and Type | Field and Description |
---|---|
protected Method |
method |
protected Object |
object |
Constructor and Description |
---|
ObjectMethod() |
ObjectMethod(Object object) |
ObjectMethod(Object object,
Method method) |
Modifier and Type | Method and Description |
---|---|
Object |
execute(ModuleElement ast,
IEolContext context,
Object... parameters)
Special handling (pre/post-processing) of method invocations.
|
Object |
execute(ModuleElement ast,
Object... parameters)
Convenience method for invoking
execute(Object[], ModuleElement)
without needing to wrap parameters into an array. |
Object |
execute(Object[] parameters,
ModuleElement ast) |
Method |
getMethod() |
Object |
getObject() |
void |
setMethod(Method method) |
void |
setObject(Object object) |
public ObjectMethod()
public ObjectMethod(Object object)
public Object getObject()
public void setObject(Object object)
public Method getMethod()
public void setMethod(Method method)
public final Object execute(ModuleElement ast, Object... parameters) throws EolRuntimeException
execute(Object[], ModuleElement)
without needing to wrap parameters into an array.ast
- parameters
- EolRuntimeException
public Object execute(Object[] parameters, ModuleElement ast) throws EolRuntimeException
EolRuntimeException
public Object execute(ModuleElement ast, IEolContext context, Object... parameters) throws EolRuntimeException
ast
- context
- parameters
- EolRuntimeException
Copyright © 2020. All rights reserved.