Package org.drools.base.reteoo
Interface BaseTuple
public interface BaseTuple
-
Method Summary
Modifier and TypeMethodDescriptionget(int pattern) Returns theFactHandlefor the given pattern index.get(Declaration declaration) Returns theFactHandlefor the givenDeclaration, which in turn specifcy thePatternthat they depend on.intgetIndex()getObject(int pattern) getObject(Declaration declaration) getTuple(int index) Returns the tuple at the given indexintsize()Returns the size of this tuple in number of elements (patterns)Returns the fact handles in reverse orderObject[]Object[]toObjects(boolean reverse)
-
Method Details
-
get
Returns theFactHandlefor the givenDeclaration, which in turn specifcy thePatternthat they depend on.- Parameters:
declaration- TheDeclarationwhich specifies thePattern- Returns:
- The
FactHandle
-
get
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
FactHandle getFactHandle() -
getObject
-
getObject
-
size
int size()Returns the size of this tuple in number of elements (patterns) -
toObjects
Object[] toObjects() -
toObjects
-
toFactHandles
FactHandle[] toFactHandles()Returns the fact handles in reverse order -
getParent
BaseTuple getParent() -
getTuple
Returns the tuple at the given index- Parameters:
index-- Returns:
-
getIndex
int getIndex() -
getContextObject
Object getContextObject() -
skipEmptyHandles
BaseTuple skipEmptyHandles()
-