|
Drools :: Core 6.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.core.reteoo.compiled.NetworkHandlerAdaptor
org.drools.core.reteoo.compiled.AssertHandler
public class AssertHandler
todo: document
| Field Summary | |
|---|---|
protected static String |
NEWLINE
|
| Constructor Summary | |
|---|---|
AssertHandler(StringBuilder builder,
String factClassName,
boolean alphaNetContainsHashedField)
|
|
| Method Summary | |
|---|---|
void |
endHashedAlphaNode(AlphaNode hashedAlpha,
Object hashedValue)
|
void |
endHashedAlphaNodes(ClassFieldReader hashedFieldReader)
|
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(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. |
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. |
| Methods inherited from class org.drools.core.reteoo.compiled.NetworkHandlerAdaptor |
|---|
endBetaNode, endLeftInputAdapterNode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String NEWLINE
| Constructor Detail |
|---|
public AssertHandler(StringBuilder builder,
String factClassName,
boolean alphaNetContainsHashedField)
| Method Detail |
|---|
public void startObjectTypeNode(ObjectTypeNode objectTypeNode)
NetworkHandlerorg.kie.reteoo.ObjectTypeNode
The Network parser will invoke this method only once, before any other event callback.
startObjectTypeNode in interface NetworkHandlerstartObjectTypeNode in class NetworkHandlerAdaptorobjectTypeNode - the object type node#endObjectTypeNode(org.kie.reteoo.ObjectTypeNode)public void startBetaNode(BetaNode betaNode)
startBetaNode in interface NetworkHandlerstartBetaNode in class NetworkHandlerAdaptorpublic void startLeftInputAdapterNode(LeftInputAdapterNode leftInputAdapterNode)
startLeftInputAdapterNode in interface NetworkHandlerstartLeftInputAdapterNode in class NetworkHandlerAdaptorpublic 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 endNonHashedAlphaNode(AlphaNode alphaNode)
NetworkHandlerorg.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 NetworkHandlerendNonHashedAlphaNode in class NetworkHandlerAdaptoralphaNode - non-hashed AlphaNodepublic 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 NetworkHandlerAdaptor
public void endHashedAlphaNode(AlphaNode hashedAlpha,
Object hashedValue)
endHashedAlphaNode in interface NetworkHandlerendHashedAlphaNode in class NetworkHandlerAdaptorpublic void endHashedAlphaNodes(ClassFieldReader hashedFieldReader)
endHashedAlphaNodes in interface NetworkHandlerendHashedAlphaNodes in class NetworkHandlerAdaptorpublic void endObjectTypeNode(ObjectTypeNode objectTypeNode)
endObjectTypeNode in interface NetworkHandlerendObjectTypeNode in class NetworkHandlerAdaptorprotected Class<?> getVariableType(AlphaNode alphaNode)
protected Class<?> getVariableType(Sink sink)
protected String getVariableName(AlphaNode alphaNode)
protected String getContextVariableName(AlphaNode alphaNode)
protected String getVariableName(Sink sink)
protected String getVariableName(ClassFieldReader fieldReader)
|
Drools :: Core 6.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||