public class NetworkHandlerAdaptor extends Object implements NetworkHandler
org.kie.reteoo.compiled.ObjectTypeNodeParser
.
The methods in this class are empty. This class exists as convenience for creating handler objects.
Extend this class to create a NetworkHandler
and override the methods for the nodes of interest.
(If you implement the NetworkHandler
interface, you have to define all of the methods in it. This
abstract class defines null methods for them all, so you can only have to define methods for events you care about.)
org.kie.reteoo.compiled.NetworkHandler
,
org.kie.reteoo.compiled.ObjectTypeNodeParser
Constructor and Description |
---|
NetworkHandlerAdaptor() |
Modifier and Type | Method and Description |
---|---|
void |
endBetaNode(BetaNode betaNode) |
void |
endHashedAlphaNode(AlphaNode hashedAlpha,
Object hashedValue) |
void |
endHashedAlphaNodes(IndexableConstraint hashedFieldReader) |
void |
endNonHashedAlphaNode(AlphaNode alphaNode)
Receive notification of the end of a non-hashed
org.kie.reteoo.AlphaNode . |
void |
endObjectTypeNode(ObjectTypeNode objectTypeNode) |
void |
endWindowNode(LeftInputAdapterNode leftInputAdapterNode) |
void |
endWindowNode(WindowNode windowNode) |
void |
nullCaseAlphaNodeEnd(AlphaNode hashedAlpha) |
void |
nullCaseAlphaNodeStart(AlphaNode hashedAlpha) |
void |
startBetaNode(BetaNode betaNode) |
void |
startHashedAlphaNode(AlphaNode hashedAlpha,
Object hashedValue) |
void |
startHashedAlphaNodes(IndexableConstraint hashedFieldReader)
Receive notification of the a group of hashed
org.kie.reteoo.AlphaNode s. |
void |
startLeftInputAdapterNode(LeftInputAdapterNode leftInputAdapterNode) |
void |
startNonHashedAlphaNode(AlphaNode alphaNode)
Receive notification of the a non-hashed
org.kie.reteoo.AlphaNode . |
void |
startObjectTypeNode(ObjectTypeNode objectTypeNode)
Receive notification of the beginning of an
org.kie.reteoo.ObjectTypeNode
The Network parser will invoke this method only once, before any other event callback. |
void |
startWindowNode(WindowNode windowNode) |
public void startObjectTypeNode(ObjectTypeNode objectTypeNode)
NetworkHandler
org.kie.reteoo.ObjectTypeNode
The Network parser will invoke this method only once, before any other event callback.
startObjectTypeNode
in interface NetworkHandler
objectTypeNode
- the object type node#endObjectTypeNode(org.kie.reteoo.ObjectTypeNode)
public void startNonHashedAlphaNode(AlphaNode alphaNode)
NetworkHandler
org.kie.reteoo.AlphaNode
.
The Parser will invoke this method at the beginning of every non-hashed Alpha in the Network; there will be a corresponding endNonHashedAlphaNode() event for every startNonHashedAlphaNode() event. All of the node's decendants will be reported, in order, before the corresponding endNonHashedAlphaNode() event.
startNonHashedAlphaNode
in interface NetworkHandler
alphaNode
- non-hashed AlphaNodeNetworkHandler.endNonHashedAlphaNode(org.drools.core.reteoo.AlphaNode)
public void endNonHashedAlphaNode(AlphaNode alphaNode)
NetworkHandler
org.kie.reteoo.AlphaNode
.
The parser will invoke this method at the end of every alpha in the network; there will be a corresponding
#startNonHashedAlphaNode(org.kie.reteoo.AlphaNode)
event for every endNonHashedAlphaNode event.
endNonHashedAlphaNode
in interface NetworkHandler
alphaNode
- non-hashed AlphaNodepublic void startBetaNode(BetaNode betaNode)
startBetaNode
in interface NetworkHandler
public void endBetaNode(BetaNode betaNode)
endBetaNode
in interface NetworkHandler
public void startWindowNode(WindowNode windowNode)
startWindowNode
in interface NetworkHandler
public void endWindowNode(WindowNode windowNode)
endWindowNode
in interface NetworkHandler
public void startLeftInputAdapterNode(LeftInputAdapterNode leftInputAdapterNode)
startLeftInputAdapterNode
in interface NetworkHandler
public void endWindowNode(LeftInputAdapterNode leftInputAdapterNode)
endWindowNode
in interface NetworkHandler
public void startHashedAlphaNodes(IndexableConstraint hashedFieldReader)
NetworkHandler
org.kie.reteoo.AlphaNode
s.
The Parser will invoke this method at the beginning of every groups of hashed Alphas in the Network;
there will be a corresponding NetworkHandler.endHashedAlphaNodes(org.drools.core.rule.IndexableConstraint)
event for every startHashedAlphaNodes() event.
The actual alpha nodes will be reported via the NetworkHandler.startHashedAlphaNode(org.drools.core.reteoo.AlphaNode, java.lang.Object)
method, along with all of the
node's decendants, in order, before the corresponding NetworkHandler.endHashedAlphaNode(org.drools.core.reteoo.AlphaNode, java.lang.Object)
event.
startHashedAlphaNodes
in interface NetworkHandler
hashedFieldReader
- field reader that is used to access the hashed attributeNetworkHandler.endHashedAlphaNodes(org.drools.core.rule.IndexableConstraint)
,
NetworkHandler.startHashedAlphaNode(org.drools.core.reteoo.AlphaNode, java.lang.Object)
public void endHashedAlphaNodes(IndexableConstraint hashedFieldReader)
endHashedAlphaNodes
in interface NetworkHandler
public void startHashedAlphaNode(AlphaNode hashedAlpha, Object hashedValue)
startHashedAlphaNode
in interface NetworkHandler
public void endHashedAlphaNode(AlphaNode hashedAlpha, Object hashedValue)
endHashedAlphaNode
in interface NetworkHandler
public void endObjectTypeNode(ObjectTypeNode objectTypeNode)
endObjectTypeNode
in interface NetworkHandler
public void nullCaseAlphaNodeStart(AlphaNode hashedAlpha)
nullCaseAlphaNodeStart
in interface NetworkHandler
public void nullCaseAlphaNodeEnd(AlphaNode hashedAlpha)
nullCaseAlphaNodeEnd
in interface NetworkHandler
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.