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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()execute(Object[] parameters, ModuleElement ast) final Objectexecute(ModuleElement ast, Object... parameters) Convenience method for invokingexecute(Object[], ModuleElement)without needing to wrap parameters into an array.execute(ModuleElement ast, IEolContext context, Object... parameters) Special handling (pre/post-processing) of method invocations.voidvoid
-
Field Details
-
method
-
object
-
-
Constructor Details
-
ObjectMethod
public ObjectMethod() -
ObjectMethod
-
ObjectMethod
-
-
Method Details
-
getObject
-
setObject
-
getMethod
-
setMethod
-
execute
Convenience method for invokingexecute(Object[], ModuleElement)without needing to wrap parameters into an array.- Parameters:
ast-parameters-- Returns:
- Throws:
EolRuntimeException- Since:
- 1.6
-
execute
- 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:
closein interfaceAutoCloseable
-