org.drools.reteoo.compiled
Class ObjectTypeNodeParser
java.lang.Object
org.drools.reteoo.compiled.ObjectTypeNodeParser
public class ObjectTypeNodeParser
- extends Object
This class is used for reading an ObjectTypeNode using callbacks.
The user defines a number of callback methods in a NetworkHandler that will be called when events occur
during parsing. The events include :
ObjectTypeNode
Non-hashed and hashed AlphaNodes
BetaNodes
LeftInputAdapterNodes
Events are fired when each of these network features are encountered, and again when the end of them is encountered.
OTN parsing is unidirectional; previously parsed data cannot be re-read without starting the parsing operation again.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectTypeNodeParser
public ObjectTypeNodeParser(ObjectTypeNode objectTypeNode)
- Creates a new parser for the specified ObjectTypeNode
- Parameters:
objectTypeNode - otn to parse
accept
public void accept(NetworkHandler handler)
- Parse the
objectTypeNode.
The application can use this method to instruct the OTN parser to begin parsing an ObjectTypeNode.
Once a parse is complete, an application may reuse the same Parser object, possibly with a different
NetworkHandler.
- Parameters:
handler - handler that will receieve the events generated by this parser- See Also:
NetworkHandler
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.