public class DeclarationsHandler extends NetworkHandlerAdaptor
CompiledNetwork.
Currently we only create member variables for the following types of nodes:
AlphaNodesLeftInputAdapterNodesBetaNodesMap for each set of hashed AlphaNodes. The keys are the hashed values, and the values are
the IDs of the alphas| Constructor and Description |
|---|
DeclarationsHandler(StringBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getContextVariableName(AlphaNode alphaNode) |
Collection<HashedAlphasDeclaration> |
getHashedAlphaDeclarations() |
protected String |
getVariableName(AlphaNode alphaNode) |
protected String |
getVariableName(ClassFieldReader fieldReader) |
protected String |
getVariableName(Sink sink) |
protected Class<?> |
getVariableType(AlphaNode alphaNode) |
protected Class<?> |
getVariableType(Sink sink) |
void |
startBetaNode(BetaNode betaNode) |
void |
startHashedAlphaNode(AlphaNode hashedAlpha,
Object hashedValue) |
void |
startHashedAlphaNodes(ClassFieldReader hashedFieldReader)
Receive notification of the a group of hashed
org.kie.reteoo.AlphaNodes. |
void |
startLeftInputAdapterNode(LeftInputAdapterNode leftInputAdapterNode) |
void |
startNonHashedAlphaNode(AlphaNode alphaNode)
Receive notification of the a non-hashed
org.kie.reteoo.AlphaNode. |
endBetaNode, endHashedAlphaNode, endHashedAlphaNodes, endLeftInputAdapterNode, endNonHashedAlphaNode, endObjectTypeNode, startObjectTypeNodeprotected static final String NEWLINE
public DeclarationsHandler(StringBuilder builder)
public Collection<HashedAlphasDeclaration> getHashedAlphaDeclarations()
public void startNonHashedAlphaNode(AlphaNode alphaNode)
NetworkHandlerorg.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 NetworkHandlerstartNonHashedAlphaNode in class NetworkHandlerAdaptoralphaNode - non-hashed AlphaNodeNetworkHandler.endNonHashedAlphaNode(org.drools.core.reteoo.AlphaNode)public void startBetaNode(BetaNode betaNode)
startBetaNode in interface NetworkHandlerstartBetaNode in class NetworkHandlerAdaptorpublic void startLeftInputAdapterNode(LeftInputAdapterNode leftInputAdapterNode)
startLeftInputAdapterNode in interface NetworkHandlerstartLeftInputAdapterNode in class NetworkHandlerAdaptorpublic void startHashedAlphaNodes(ClassFieldReader hashedFieldReader)
NetworkHandlerorg.kie.reteoo.AlphaNodes.
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.base.ClassFieldReader) 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 NetworkHandlerstartHashedAlphaNodes in class NetworkHandlerAdaptorhashedFieldReader - field reader that is used to access the hashed attributeNetworkHandler.endHashedAlphaNodes(org.drools.core.base.ClassFieldReader),
NetworkHandler.startHashedAlphaNode(org.drools.core.reteoo.AlphaNode, java.lang.Object)public void startHashedAlphaNode(AlphaNode hashedAlpha, Object hashedValue)
startHashedAlphaNode in interface NetworkHandlerstartHashedAlphaNode in class NetworkHandlerAdaptorprotected String getVariableName(ClassFieldReader fieldReader)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.