Class JavaPropertyGetter

java.lang.Object
org.eclipse.epsilon.eol.execute.introspection.AbstractPropertyGetter
org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertyGetter
All Implemented Interfaces:
IPropertyGetter
Direct Known Subclasses:
HtmlPropertyGetter, JdtPropertyGetter, JsonPropertyGetter, MuddleModelPropertyGetter, PatternMatchPropertyGetter, PlainXmlPropertyGetter, SimulinkPropertyGetter, SpreadsheetPropertyGetter, YamlPropertyGetter

public class JavaPropertyGetter extends AbstractPropertyGetter
  • Constructor Details

    • JavaPropertyGetter

      public JavaPropertyGetter()
  • Method Details

    • hasProperty

      public boolean hasProperty(Object object, String property, IEolContext context)
      Description copied from interface: IPropertyGetter
      Convenience method for checking whether a property exists.
      Parameters:
      object - The model element.
      property - The property name of the model element.
      context - The execution context.
      Returns:
      true if the property exists, false otherwise.
    • getMethodFor

      protected ObjectMethod getMethodFor(Object object, String property, IEolContext context)
    • 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.