Class ObjectMethod
- java.lang.Object
-
- org.eclipse.epsilon.eol.execute.introspection.java.ObjectMethod
-
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
EnumObjectMethod
,SimulinkDictionaryObjectMethod
,SimulinkObjectMethod
,SimulinkRequirementObjectMethod
,StateflowObjectMethod
public class ObjectMethod extends Object
-
-
Constructor Summary
Constructors Constructor Description ObjectMethod()
ObjectMethod(Object object)
ObjectMethod(Object object, Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Object
execute(Object[] parameters, ModuleElement ast)
Object
execute(ModuleElement ast, Object... parameters)
Convenience method for invokingexecute(Object[], ModuleElement)
without needing to wrap parameters into an array.Object
execute(ModuleElement ast, IEolContext context, Object... parameters)
Special handling (pre/post-processing) of method invocations.Method
getMethod()
Object
getObject()
void
setMethod(Method method)
void
setObject(Object object)
-
-
-
Method Detail
-
getObject
public Object getObject()
-
setObject
public void setObject(Object object)
-
getMethod
public Method getMethod()
-
setMethod
public void setMethod(Method method)
-
execute
public final Object execute(ModuleElement ast, Object... parameters) throws EolRuntimeException
Convenience method for invokingexecute(Object[], ModuleElement)
without needing to wrap parameters into an array.- Parameters:
ast
-parameters
-- Returns:
- Throws:
EolRuntimeException
- Since:
- 1.6
-
execute
public Object execute(Object[] parameters, ModuleElement ast) throws EolRuntimeException
- Throws:
EolRuntimeException
-
execute
public Object execute(ModuleElement ast, IEolContext context, Object... parameters) throws EolRuntimeException
Special handling (pre/post-processing) of method invocations.- Parameters:
ast
-context
-parameters
-- Returns:
- Throws:
EolRuntimeException
- Since:
- 1.6
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-