Class JavaTupleExtractor

  • All Implemented Interfaces:
    IValueExtractor

    public class JavaTupleExtractor
    extends TupleExtractor
    Extractor for fetching a Java value from a rete tuple.
    • Constructor Detail

      • JavaTupleExtractor

        public JavaTupleExtractor​(int tupleindex,
                                  OAVJavaAttributeType attr)
        Create a new extractor.
    • 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
        Overrides:
        getValue in class TupleExtractor
        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.
      • toString

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