Package org.drools.core.common
Class PhreakPropagationContext
- java.lang.Object
-
- org.drools.core.common.PhreakPropagationContext
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,PropagationContext
public class PhreakPropagationContext extends java.lang.Object implements PropagationContext
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.core.common.PropagationContext
PropagationContext.Type
-
-
Constructor Summary
Constructors Constructor Description PhreakPropagationContext()PhreakPropagationContext(long number, PropagationContext.Type type, RuleImpl rule, TerminalNode terminalNode, InternalFactHandle factHandle)PhreakPropagationContext(long number, PropagationContext.Type type, RuleImpl rule, TerminalNode terminalNode, InternalFactHandle factHandle, EntryPointId entryPoint)PhreakPropagationContext(long number, PropagationContext.Type type, RuleImpl rule, TerminalNode terminalNode, InternalFactHandle factHandle, EntryPointId entryPoint, MarshallerReaderContext readerContext)PhreakPropagationContext(long number, PropagationContext.Type type, RuleImpl rule, TerminalNode terminalNode, InternalFactHandle factHandle, EntryPointId entryPoint, BitMask modificationMask, java.lang.Class<?> modifiedClass, MarshallerReaderContext readerContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PropagationContextadaptModificationMaskForObjectType(ObjectType type, ReteEvaluator reteEvaluator)voidcleanReaderContext()EntryPointIdgetEntryPoint()InternalFactHandlegetFactHandle()BitMaskgetModificationMask()longgetPropagationNumber()MarshallerReaderContextgetReaderContext()RuleImplgetRuleOrigin()TerminalNodegetTerminalNodeOrigin()PropagationContext.TypegetType()static java.lang.StringintEnumToString(PropagationContext pctx)voidreadExternal(java.io.ObjectInput in)voidsetEntryPoint(EntryPointId entryPoint)voidsetFactHandle(InternalFactHandle factHandle)voidsetModificationMask(BitMask modificationMask)java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput out)
-
-
-
Constructor Detail
-
PhreakPropagationContext
public PhreakPropagationContext()
-
PhreakPropagationContext
public PhreakPropagationContext(long number, PropagationContext.Type type, RuleImpl rule, TerminalNode terminalNode, InternalFactHandle factHandle)
-
PhreakPropagationContext
public PhreakPropagationContext(long number, PropagationContext.Type type, RuleImpl rule, TerminalNode terminalNode, InternalFactHandle factHandle, EntryPointId entryPoint)
-
PhreakPropagationContext
public PhreakPropagationContext(long number, PropagationContext.Type type, RuleImpl rule, TerminalNode terminalNode, InternalFactHandle factHandle, EntryPointId entryPoint, MarshallerReaderContext readerContext)
-
PhreakPropagationContext
public PhreakPropagationContext(long number, PropagationContext.Type type, RuleImpl rule, TerminalNode terminalNode, InternalFactHandle factHandle, EntryPointId entryPoint, BitMask modificationMask, java.lang.Class<?> modifiedClass, MarshallerReaderContext readerContext)
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
getPropagationNumber
public long getPropagationNumber()
- Specified by:
getPropagationNumberin interfacePropagationContext
-
cleanReaderContext
public void cleanReaderContext()
- Specified by:
cleanReaderContextin interfacePropagationContext
-
getRuleOrigin
public RuleImpl getRuleOrigin()
- Specified by:
getRuleOriginin interfacePropagationContext
-
getTerminalNodeOrigin
public TerminalNode getTerminalNodeOrigin()
- Specified by:
getTerminalNodeOriginin interfacePropagationContext
-
getFactHandle
public InternalFactHandle getFactHandle()
- Specified by:
getFactHandlein interfacePropagationContext- Returns:
- fact handle that was inserted, updated or retracted that created the PropagationContext
-
setFactHandle
public void setFactHandle(InternalFactHandle factHandle)
- Specified by:
setFactHandlein interfacePropagationContext
-
getType
public PropagationContext.Type getType()
- Specified by:
getTypein interfacePropagationContext
-
getEntryPoint
public EntryPointId getEntryPoint()
- Specified by:
getEntryPointin interfacePropagationContext- Returns:
- the entryPoint
-
setEntryPoint
public void setEntryPoint(EntryPointId entryPoint)
- Specified by:
setEntryPointin interfacePropagationContext- Parameters:
entryPoint- the entryPoint to set
-
getModificationMask
public BitMask getModificationMask()
- Specified by:
getModificationMaskin interfacePropagationContext
-
setModificationMask
public void setModificationMask(BitMask modificationMask)
- Specified by:
setModificationMaskin interfacePropagationContext
-
adaptModificationMaskForObjectType
public PropagationContext adaptModificationMaskForObjectType(ObjectType type, ReteEvaluator reteEvaluator)
- Specified by:
adaptModificationMaskForObjectTypein interfacePropagationContext
-
getReaderContext
public MarshallerReaderContext getReaderContext()
- Specified by:
getReaderContextin interfacePropagationContext
-
intEnumToString
public static java.lang.String intEnumToString(PropagationContext pctx)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-