Class SimulinkPropertyGetter
java.lang.Object
org.eclipse.epsilon.eol.execute.introspection.AbstractPropertyGetter
org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertyGetter
org.eclipse.epsilon.emc.simulink.introspection.java.SimulinkPropertyGetter
- All Implemented Interfaces:
IPropertyGetter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasProperty(Object object, String property, IEolContext context) Convenience method for checking whether a property exists.invoke(Object object, String property, IEolContext context) Invokes a property on a model element.Methods inherited from class org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertyGetter
getMethodForMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.epsilon.eol.execute.introspection.IPropertyGetter
hasProperty, invoke
-
Constructor Details
-
SimulinkPropertyGetter
public SimulinkPropertyGetter()
-
-
Method Details
-
hasProperty
Description copied from interface:IPropertyGetterConvenience method for checking whether a property exists.- Specified by:
hasPropertyin interfaceIPropertyGetter- Overrides:
hasPropertyin classJavaPropertyGetter- Parameters:
object- The model element.property- The property name of the model element.context- The execution context.- Returns:
trueif the property exists,falseotherwise.
-
invoke
public Object invoke(Object object, String property, IEolContext context) throws EolRuntimeException Description copied from interface:IPropertyGetterInvokes a property on a model element.- Specified by:
invokein interfaceIPropertyGetter- Overrides:
invokein classJavaPropertyGetter- Parameters:
object- The model element.property- The property name of the model element.context- The execution context.- Returns:
- The value of the requested property.
- Throws:
EolIllegalPropertyException- If the property could not be found.EolRuntimeException- If an exception occurs when querying the model for the property.
-