ContextManager(Cx)
A ContextManager can control multiple contexts through the entire parsing
Constructor
new ContextManager(Cx)
Parameters:
Name | Type | Description |
---|---|---|
Cx |
Context | The root context to manage |
- Source:
- ContextManager.js, line 4
Members
current Context
The current active context
- Source:
- ContextManager.js, line 29
readonlyhistory Array.<Context>
An array of contexts which have ever been activated
- Source:
- ContextManager.js, line 47
readonlyroot Context
The root context
- Source:
- ContextManager.js, line 21
Methods
feed(Bf)
Feeds a buffer to all the appropriate contexts depending on the current context
Parameters:
Name | Type | Description |
---|---|---|
Bf |
Buffer |
- Source:
- ContextManager.js, line 60