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