Package org.drools.base.reteoo
Interface BaseTuple
-
public interface BaseTuple
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.kie.api.runtime.rule.FactHandleget(int pattern)Returns theFactHandlefor the given pattern index.org.kie.api.runtime.rule.FactHandleget(Declaration declaration)Returns theFactHandlefor the givenDeclaration, which in turn specifcy thePatternthat they depend on.java.lang.ObjectgetContextObject()org.kie.api.runtime.rule.FactHandlegetFactHandle()intgetIndex()java.lang.ObjectgetObject(int pattern)java.lang.ObjectgetObject(Declaration declaration)BaseTuplegetParent()BaseTuplegetTuple(int index)Returns the tuple at the given indexintsize()Returns the size of this tuple in number of elements (patterns)BaseTupleskipEmptyHandles()org.kie.api.runtime.rule.FactHandle[]toFactHandles()Returns the fact handles in reverse orderjava.lang.Object[]toObjects()java.lang.Object[]toObjects(boolean reverse)
-
-
-
Method Detail
-
get
org.kie.api.runtime.rule.FactHandle get(Declaration declaration)
Returns theFactHandlefor the givenDeclaration, which in turn specifcy thePatternthat they depend on.- Parameters:
declaration- TheDeclarationwhich specifies thePattern- Returns:
- The
FactHandle
-
get
org.kie.api.runtime.rule.FactHandle get(int pattern)
Returns theFactHandlefor the given pattern index. If the pattern is empty It returns null.- Parameters:
pattern- The index of the pattern from which theFactHandleImplis 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
-
getParent
BaseTuple getParent()
-
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()
-
-