public class AssertHandler extends SwitchCompilerHandler
Modifier and Type | Field and Description |
---|---|
protected static String |
NEWLINE |
builder, FACT_HANDLE_PARAM_TYPE, MODIFY_PREVIOUS_TUPLE_NAME, MODIFY_PREVIOUS_TUPLE_PARAM_NAME, PROP_CONTEXT_PARAM_TYPE, WORKING_MEMORY_PARAM_TYPE
Constructor and Description |
---|
AssertHandler(StringBuilder builder,
String factClassName,
boolean alphaNetContainsHashedField) |
Modifier and Type | Method and Description |
---|---|
void |
endHashedAlphaNode(AlphaNode hashedAlpha,
Object hashedValue) |
void |
endHashedAlphaNodes(IndexableConstraint indexableConstraint) |
void |
endNonHashedAlphaNode(AlphaNode alphaNode)
Receive notification of the end of a non-hashed
org.kie.reteoo.AlphaNode . |
void |
endObjectTypeNode(ObjectTypeNode objectTypeNode) |
protected String |
getContextVariableName(AlphaNode alphaNode) |
protected String |
getVariableName() |
protected String |
getVariableName(AlphaNode alphaNode) |
protected String |
getVariableName(Sink sink) |
protected Class<?> |
getVariableType(AlphaNode alphaNode) |
protected Class<?> |
getVariableType(Sink sink) |
void |
nullCaseAlphaNodeStart(AlphaNode hashedAlpha) |
void |
startBetaNode(BetaNode betaNode) |
void |
startHashedAlphaNode(AlphaNode hashedAlpha,
Object hashedValue) |
void |
startHashedAlphaNodes(IndexableConstraint indexableConstraint)
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) |
canInlineValue, generateSwitch, generateSwitchCase, nullCaseAlphaNodeEnd
endBetaNode, endWindowNode, endWindowNode
protected static final String NEWLINE
public AssertHandler(StringBuilder builder, String factClassName, boolean alphaNetContainsHashedField)
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
startObjectTypeNode
in class NetworkHandlerAdaptor
objectTypeNode
- the object type node#endObjectTypeNode(org.kie.reteoo.ObjectTypeNode)
public void startBetaNode(BetaNode betaNode)
startBetaNode
in interface NetworkHandler
startBetaNode
in class NetworkHandlerAdaptor
public void startWindowNode(WindowNode windowNode)
startWindowNode
in interface NetworkHandler
startWindowNode
in class NetworkHandlerAdaptor
public void startLeftInputAdapterNode(LeftInputAdapterNode leftInputAdapterNode)
startLeftInputAdapterNode
in interface NetworkHandler
startLeftInputAdapterNode
in class NetworkHandlerAdaptor
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
startNonHashedAlphaNode
in class NetworkHandlerAdaptor
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
endNonHashedAlphaNode
in class NetworkHandlerAdaptor
alphaNode
- non-hashed AlphaNodepublic void startHashedAlphaNodes(IndexableConstraint indexableConstraint)
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
startHashedAlphaNodes
in class NetworkHandlerAdaptor
indexableConstraint
- 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 startHashedAlphaNode(AlphaNode hashedAlpha, Object hashedValue)
startHashedAlphaNode
in interface NetworkHandler
startHashedAlphaNode
in class NetworkHandlerAdaptor
public void endHashedAlphaNode(AlphaNode hashedAlpha, Object hashedValue)
endHashedAlphaNode
in interface NetworkHandler
endHashedAlphaNode
in class NetworkHandlerAdaptor
public void endHashedAlphaNodes(IndexableConstraint indexableConstraint)
endHashedAlphaNodes
in interface NetworkHandler
endHashedAlphaNodes
in class NetworkHandlerAdaptor
public void endObjectTypeNode(ObjectTypeNode objectTypeNode)
endObjectTypeNode
in interface NetworkHandler
endObjectTypeNode
in class NetworkHandlerAdaptor
public void nullCaseAlphaNodeStart(AlphaNode hashedAlpha)
nullCaseAlphaNodeStart
in interface NetworkHandler
nullCaseAlphaNodeStart
in class SwitchCompilerHandler
protected String getVariableName()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.