|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJet.Parser.Parsers
contains static methods for various types of recognizers and parsers.
Field Summary | |
static int |
BUPARSE
a constant indicating that the bottom-up parser, BUParse ,
should be used to analyze the text |
static int |
CHARTPARSE
a constant indicating that the top-down active chart parser, chartParse , should be used to analyze the text |
static boolean |
parserTrace
if true, causes each parser to write trace messages to the Console. |
static int |
parserType
determines which analyzer will be applied by method parse |
static int |
RECOGNIZE
a constant indicating that the top-down recognizer, recognize ,
should be used to analyze the text |
static int |
TDPARSE
a constant indicating that the top-down parser, TDParse ,
should be used to analyze the text |
Constructor Summary | |
Parsers()
|
Method Summary | |
static java.util.Vector |
BUParse(Document doc,
int posn,
int end,
Grammar gram)
apply a bottom-up ('immediate constituent') parser to characters posn to end of Document using grammar gram. |
static java.util.Vector |
chartParse(Document doc,
int posn,
int end,
Grammar gram)
apply a top-down active chart parser to characters posn to end of Document doc using grammar gram. |
static java.util.Vector |
parse(Document doc,
int posn,
int end,
Grammar gram)
parse characters posn to end of Document using grammar gram. |
static javax.swing.JMenu |
parserMenu()
returns a menu for controlling the parser (part of the Console menu bar). |
static boolean |
recognize(Document doc,
int posn,
int end,
Grammar gram)
apply a top-down recognizer to characters posn to end of Document using grammar gram. |
static java.util.Vector |
TDParse(Document doc,
int posn,
int end,
Grammar gram)
apply a top-down backtracking parser to characters posn to end of Document using grammar gram. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int RECOGNIZE
recognize
,
should be used to analyze the text
public static final int TDPARSE
TDParse
,
should be used to analyze the text
public static final int BUPARSE
BUParse
,
should be used to analyze the text
public static final int CHARTPARSE
chartParse
, should be used to analyze the text
public static int parserType
parse
public static boolean parserTrace
Constructor Detail |
public Parsers()
Method Detail |
public static java.util.Vector parse(Document doc, int posn, int end, Grammar gram)
public static boolean recognize(Document doc, int posn, int end, Grammar gram)
public static java.util.Vector TDParse(Document doc, int posn, int end, Grammar gram)
public static java.util.Vector BUParse(Document doc, int posn, int end, Grammar gram)
public static java.util.Vector chartParse(Document doc, int posn, int end, Grammar gram)
public static javax.swing.JMenu parserMenu()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |