Interface BaseTuple


  • public interface BaseTuple
    • Method Detail

      • get

        org.kie.api.runtime.rule.FactHandle get​(Declaration declaration)
        Returns the FactHandle for the given Declaration, which in turn specifcy the Pattern that they depend on.
        Parameters:
        declaration - The Declaration which specifies the Pattern
        Returns:
        The FactHandle
      • get

        org.kie.api.runtime.rule.FactHandle get​(int pattern)
        Returns the FactHandle for the given pattern index. If the pattern is empty It returns null.
        Parameters:
        pattern - The index of the pattern from which the FactHandleImpl is to be returned
        Returns:
        The FactHandle
      • getFactHandle

        org.kie.api.runtime.rule.FactHandle getFactHandle()
      • getObject

        java.lang.Object getObject​(int pattern)
      • getObject

        java.lang.Object getObject​(Declaration declaration)
      • size

        int size()
        Returns the size of this tuple in number of elements (patterns)
      • toObjects

        java.lang.Object[] toObjects()
      • toObjects

        java.lang.Object[] toObjects​(boolean reverse)
      • toFactHandles

        org.kie.api.runtime.rule.FactHandle[] toFactHandles()
        Returns the fact handles in reverse order
      • getTuple

        BaseTuple getTuple​(int index)
        Returns the tuple at the given index
        Parameters:
        index -
        Returns:
      • getIndex

        int getIndex()
      • getContextObject

        java.lang.Object getContextObject()
      • skipEmptyHandles

        BaseTuple skipEmptyHandles()