Class JavaMethodExtractor

  • All Implemented Interfaces:
    IValueExtractor

    public class JavaMethodExtractor
    extends java.lang.Object
    implements IValueExtractor
    Call a method on an object.
    • Field Detail

      • methodcall

        protected MethodCall methodcall
        The method call descriptor.
      • parameters

        protected IValueExtractor[] parameters
        The parameter extractors.
    • Method Detail

      • getValue

        public java.lang.Object getValue​(Tuple left,
                                         java.lang.Object right,
                                         java.lang.Object prefix,
                                         IOAVState state)
        Get the value of an attribute from an object or tuple.
        Specified by:
        getValue in interface IValueExtractor
        Parameters:
        left - The left input tuple.
        right - The right input object.
        prefix - The prefix input object (last value from previous extractor in a chain).
        state - The working memory.
      • isAffected

        public boolean isAffected​(int tupleindex,
                                  OAVAttributeType attr)
        Test if a constraint evaluator is affected from a change of a certain attribute.
        Specified by:
        isAffected in interface IValueExtractor
        Parameters:
        tupleindex - The tuple index (-1 for object).
        attr - The attribute.
        Returns:
        True, if affected.
      • getIndirectAttributes

        public AttributeSet getIndirectAttributes()
        Get the set of indirect attribute types. I.e. attributes of objects, which are not part of an object conditions (e.g. for chained extractors)
        Specified by:
        getIndirectAttributes in interface IValueExtractor
        Returns:
        The relevant attribute types.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.