Package org.drools.core.reteoo
Class AbstractTuple
- java.lang.Object
-
- org.drools.core.reteoo.AbstractTuple
-
- All Implemented Interfaces:
java.io.Serializable,org.drools.base.reteoo.BaseTuple,Tuple,Entry<AbstractTuple>
- Direct Known Subclasses:
LeftTuple,RightTupleImpl
public abstract class AbstractTuple extends java.lang.Object implements Tuple
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected InternalFactHandlehandleprotected TuplehandleNextprotected TuplehandlePreviousprotected TuplestagedNextprotected TuplestagedPrevious
-
Constructor Summary
Constructors Constructor Description AbstractTuple()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidclearStaged()org.kie.api.runtime.rule.FactHandleget(org.drools.base.rule.Declaration declaration)java.lang.ObjectgetContextObject()InternalFactHandlegetFactHandle()TuplegetHandleNext()TuplegetHandlePrevious()AbstractTuplegetNext()java.lang.ObjectgetObject(org.drools.base.rule.Declaration declaration)InternalFactHandlegetOriginalFactHandle()This method is used by the consequence invoker (generated via asm by the ConsequenceGenerator) to always pass to the consequence the original fact handle even in case when it has been cloned and linked by a WindowNodeTuplegetPrevious()PropagationContextgetPropagationContext()TuplegetRootTuple()protected SinkgetSink()shortgetStagedType()TuplegetTuple(int index)booleanisExpired()voidsetContextObject(java.lang.Object contextObject)voidsetExpired()voidsetFactHandle(org.kie.api.runtime.rule.FactHandle handle)voidsetHandleNext(Tuple handleNext)voidsetHandlePrevious(Tuple handlePrevious)voidsetNext(AbstractTuple next)voidsetPrevious(Tuple previous)voidsetPropagationContext(PropagationContext propagationContext)protected voidsetSink(Sink sink)voidsetStagedNext(Tuple stageNext)voidsetStagedPrevious(Tuple stagedPrevious)voidsetStagedType(short stagedType)TupleskipEmptyHandles()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.base.reteoo.BaseTuple
get, getIndex, getObject, size, toFactHandles, toObjects
-
Methods inherited from interface org.drools.core.reteoo.Tuple
findMostRecentPropagationContext, getFirstChild, getInputOtnId, getLastChild, getMemory, getParent, getStagedNext, getStagedPrevious, getSubTuple, getTupleSink, getTupleSource, isDeleted, reAdd, setFirstChild, setLastChild, setMemory, toObjects, unlinkFromLeftParent, unlinkFromRightParent
-
-
-
-
Field Detail
-
handle
protected InternalFactHandle handle
-
stagedNext
protected Tuple stagedNext
-
stagedPrevious
protected Tuple stagedPrevious
-
handlePrevious
protected Tuple handlePrevious
-
handleNext
protected Tuple handleNext
-
-
Method Detail
-
getObject
public java.lang.Object getObject(org.drools.base.rule.Declaration declaration)
- Specified by:
getObjectin interfaceorg.drools.base.reteoo.BaseTuple
-
getContextObject
public java.lang.Object getContextObject()
- Specified by:
getContextObjectin interfaceorg.drools.base.reteoo.BaseTuple- Specified by:
getContextObjectin interfaceTuple
-
setContextObject
public final void setContextObject(java.lang.Object contextObject)
- Specified by:
setContextObjectin interfaceTuple
-
getStagedType
public short getStagedType()
- Specified by:
getStagedTypein interfaceTuple
-
setStagedType
public void setStagedType(short stagedType)
- Specified by:
setStagedTypein interfaceTuple
-
clearStaged
public void clearStaged()
- Specified by:
clearStagedin interfaceTuple
-
getFactHandle
public InternalFactHandle getFactHandle()
- Specified by:
getFactHandlein interfaceorg.drools.base.reteoo.BaseTuple
-
getOriginalFactHandle
public InternalFactHandle getOriginalFactHandle()
This method is used by the consequence invoker (generated via asm by the ConsequenceGenerator) to always pass to the consequence the original fact handle even in case when it has been cloned and linked by a WindowNode- Specified by:
getOriginalFactHandlein interfaceTuple
-
setFactHandle
public void setFactHandle(org.kie.api.runtime.rule.FactHandle handle)
- Specified by:
setFactHandlein interfaceTuple
-
getPropagationContext
public PropagationContext getPropagationContext()
- Specified by:
getPropagationContextin interfaceTuple
-
setPropagationContext
public void setPropagationContext(PropagationContext propagationContext)
- Specified by:
setPropagationContextin interfaceTuple
-
setStagedNext
public void setStagedNext(Tuple stageNext)
- Specified by:
setStagedNextin interfaceTuple
-
setStagedPrevious
public void setStagedPrevious(Tuple stagedPrevious)
- Specified by:
setStagedPreviousin interfaceTuple
-
getPrevious
public Tuple getPrevious()
- Specified by:
getPreviousin interfaceTuple
-
setPrevious
public void setPrevious(Tuple previous)
- Specified by:
setPreviousin interfaceTuple
-
getNext
public AbstractTuple getNext()
- Specified by:
getNextin interfaceEntry<AbstractTuple>
-
setNext
public void setNext(AbstractTuple next)
- Specified by:
setNextin interfaceEntry<AbstractTuple>
-
get
public org.kie.api.runtime.rule.FactHandle get(org.drools.base.rule.Declaration declaration)
- Specified by:
getin interfaceorg.drools.base.reteoo.BaseTuple
-
getTuple
public Tuple getTuple(int index)
- Specified by:
getTuplein interfaceorg.drools.base.reteoo.BaseTuple
-
getRootTuple
public Tuple getRootTuple()
- Specified by:
getRootTuplein interfaceTuple
-
skipEmptyHandles
public Tuple skipEmptyHandles()
- Specified by:
skipEmptyHandlesin interfaceorg.drools.base.reteoo.BaseTuple- Specified by:
skipEmptyHandlesin interfaceTuple
-
getHandlePrevious
public Tuple getHandlePrevious()
- Specified by:
getHandlePreviousin interfaceTuple
-
setHandlePrevious
public void setHandlePrevious(Tuple handlePrevious)
- Specified by:
setHandlePreviousin interfaceTuple
-
getHandleNext
public Tuple getHandleNext()
- Specified by:
getHandleNextin interfaceTuple
-
setHandleNext
public void setHandleNext(Tuple handleNext)
- Specified by:
setHandleNextin interfaceTuple
-
setExpired
public void setExpired()
-
getSink
protected Sink getSink()
-
setSink
protected void setSink(Sink sink)
-
-