Package org.drools.core.rule
Class ReturnValueRestriction.ReturnValueContextEntry
- java.lang.Object
-
- org.drools.core.rule.ReturnValueRestriction.ReturnValueContextEntry
-
- All Implemented Interfaces:
Externalizable
,Serializable
,ContextEntry
- Enclosing class:
- ReturnValueRestriction
public static class ReturnValueRestriction.ReturnValueContextEntry extends Object implements ContextEntry
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Object
dialectContext
ReadAccessor
fieldExtractor
InternalFactHandle
handle
Declaration[]
localDeclarations
Declaration[]
previousDeclarations
Tuple
tuple
InternalWorkingMemory
workingMemory
-
Constructor Summary
Constructors Constructor Description ReturnValueContextEntry()
ReturnValueContextEntry(ReadAccessor fieldExtractor, Declaration[] previousDeclarations, Declaration[] localDeclarations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadAccessor
getFieldExtractor()
InternalFactHandle
getHandle()
Declaration[]
getLocalDeclarations()
ContextEntry
getNext()
Declaration[]
getPreviousDeclarations()
InternalWorkingMemory
getWorkingMemory()
void
readExternal(ObjectInput in)
void
resetFactHandle()
void
resetTuple()
void
setNext(ContextEntry entry)
void
updateFromFactHandle(InternalWorkingMemory workingMemory, InternalFactHandle handle)
void
updateFromTuple(InternalWorkingMemory workingMemory, Tuple tuple)
void
writeExternal(ObjectOutput out)
-
-
-
Field Detail
-
fieldExtractor
public ReadAccessor fieldExtractor
-
handle
public InternalFactHandle handle
-
tuple
public Tuple tuple
-
workingMemory
public InternalWorkingMemory workingMemory
-
previousDeclarations
public Declaration[] previousDeclarations
-
localDeclarations
public Declaration[] localDeclarations
-
dialectContext
public Object dialectContext
-
-
Constructor Detail
-
ReturnValueContextEntry
public ReturnValueContextEntry()
-
ReturnValueContextEntry
public ReturnValueContextEntry(ReadAccessor fieldExtractor, Declaration[] previousDeclarations, Declaration[] localDeclarations)
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getNext
public ContextEntry getNext()
- Specified by:
getNext
in interfaceContextEntry
-
setNext
public void setNext(ContextEntry entry)
- Specified by:
setNext
in interfaceContextEntry
-
updateFromFactHandle
public void updateFromFactHandle(InternalWorkingMemory workingMemory, InternalFactHandle handle)
- Specified by:
updateFromFactHandle
in interfaceContextEntry
-
updateFromTuple
public void updateFromTuple(InternalWorkingMemory workingMemory, Tuple tuple)
- Specified by:
updateFromTuple
in interfaceContextEntry
-
getFieldExtractor
public ReadAccessor getFieldExtractor()
-
getHandle
public InternalFactHandle getHandle()
-
getPreviousDeclarations
public Declaration[] getPreviousDeclarations()
-
getLocalDeclarations
public Declaration[] getLocalDeclarations()
-
getWorkingMemory
public InternalWorkingMemory getWorkingMemory()
-
resetTuple
public void resetTuple()
- Specified by:
resetTuple
in interfaceContextEntry
-
resetFactHandle
public void resetFactHandle()
- Specified by:
resetFactHandle
in interfaceContextEntry
-
-