Interface IPropertyGetter

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.Object hasProperty​(java.lang.Object object, java.lang.String property)
      This method is provided for backwards compatibility and convenience.
      default boolean hasProperty​(java.lang.Object object, java.lang.String property, IEolContext context)
      Convenience method for checking whether a property exists.
      default java.lang.Object invoke​(java.lang.Object object, java.lang.String property)
      This method is provided for backwards compatibility and convenience.
      java.lang.Object invoke​(java.lang.Object object, java.lang.String property, IEolContext context)
      Invokes a property on a model element.
    • Method Detail

      • invoke

        java.lang.Object invoke​(java.lang.Object object,
                                java.lang.String property,
                                IEolContext context)
                         throws EolRuntimeException
        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.
        Since:
        1.6
      • hasProperty

        default boolean hasProperty​(java.lang.Object object,
                                    java.lang.String property,
                                    IEolContext context)
        Convenience method for checking whether a property exists.
        Parameters:
        object - The model element.
        property - The property name of the model element.
        ast - Where this is being called from.
        context - The execution context.
        Returns:
        true if the property exists, false otherwise.
        Since:
        1.6