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.FactHandle
get(int pattern)
Returns theFactHandle
for the given pattern index.org.kie.api.runtime.rule.FactHandle
get(Declaration declaration)
Returns theFactHandle
for the givenDeclaration
, which in turn specifcy thePattern
that they depend on.java.lang.Object
getContextObject()
org.kie.api.runtime.rule.FactHandle
getFactHandle()
int
getIndex()
java.lang.Object
getObject(int pattern)
java.lang.Object
getObject(Declaration declaration)
BaseTuple
getParent()
BaseTuple
getTuple(int index)
Returns the tuple at the given indexint
size()
Returns the size of this tuple in number of elements (patterns)BaseTuple
skipEmptyHandles()
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 theFactHandle
for the givenDeclaration
, which in turn specifcy thePattern
that they depend on.- Parameters:
declaration
- TheDeclaration
which specifies thePattern
- Returns:
- The
FactHandle
-
get
org.kie.api.runtime.rule.FactHandle get(int pattern)
Returns theFactHandle
for the given pattern index. If the pattern is empty It returns null.- Parameters:
pattern
- The index of the pattern from which theFactHandleImpl
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
-
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()
-
-