|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Parser binds patterns to names in a PatternLibrary. The actual parsing of a document should be done behind the scenes when one of those patterns is matched against a document.
Method Summary | |
void |
bind(PatternLibrary lib)
Bind the parser's patterns into the library. |
void |
bind(PatternLibrary lib,
Document doc)
Bind document-specific patterns into a document-specific library. |
Method Detail |
public void bind(PatternLibrary lib)
lib
- Library in which patterns should be boundPatternLibrary.put()
to add each of their patterns to the library.public void bind(PatternLibrary lib, Document doc)
getDocumentLibrary
makes a document-specific
library for a new document.
lib
- Document-specific librarydoc
- Document to which library pertains
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |