Package org.eclipse.epsilon.eol.models
Class ModelGroup.DelegatingModelElementPropertyGetter
java.lang.Object
org.eclipse.epsilon.eol.execute.introspection.AbstractPropertyGetter
org.eclipse.epsilon.eol.models.ModelGroup.DelegatingModelElementPropertyGetter
- All Implemented Interfaces:
IPropertyGetter
- Enclosing class:
- ModelGroup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninvoke
(Object object, String property, IEolContext context) Invokes a property on a model element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.epsilon.eol.execute.introspection.IPropertyGetter
hasProperty, hasProperty, invoke
-
Constructor Details
-
DelegatingModelElementPropertyGetter
public DelegatingModelElementPropertyGetter()
-
-
Method Details
-
invoke
public Object invoke(Object object, String property, IEolContext context) throws EolRuntimeException Description copied from interface:IPropertyGetter
Invokes a property on a model element.- 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.
-