Package org.eclipse.epsilon.emc.muddle
Class MuddleModelPropertyGetter
- java.lang.Object
-
- org.eclipse.epsilon.eol.execute.introspection.AbstractPropertyGetter
-
- org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertyGetter
-
- org.eclipse.epsilon.emc.muddle.MuddleModelPropertyGetter
-
- All Implemented Interfaces:
IPropertyGetter
public class MuddleModelPropertyGetter extends JavaPropertyGetter
-
-
Field Summary
Fields Modifier and Type Field Description protected MuddleModelmodel
-
Constructor Summary
Constructors Constructor Description MuddleModelPropertyGetter(MuddleModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectgetDefaultSlotValue(Feature feature)protected FeaturegetFeature(MuddleElement element, java.lang.String property)protected SlotgetSlot(MuddleElement element, Feature feature)java.lang.Objectinvoke(java.lang.Object o, java.lang.String property, IEolContext context)Invokes a property on a model element.-
Methods inherited from class org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertyGetter
getMethodFor, hasProperty
-
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, invoke
-
-
-
-
Field Detail
-
model
protected MuddleModel model
-
-
Constructor Detail
-
MuddleModelPropertyGetter
public MuddleModelPropertyGetter(MuddleModel model)
-
-
Method Detail
-
invoke
public java.lang.Object invoke(java.lang.Object o, java.lang.String property, IEolContext context) throws EolRuntimeExceptionDescription copied from interface:IPropertyGetterInvokes a property on a model element.- Specified by:
invokein interfaceIPropertyGetter- Overrides:
invokein classJavaPropertyGetter- Parameters:
o- 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.
-
getDefaultSlotValue
protected java.lang.Object getDefaultSlotValue(Feature feature)
-
getSlot
protected Slot getSlot(MuddleElement element, Feature feature)
-
getFeature
protected Feature getFeature(MuddleElement element, java.lang.String property)
-
-