public class StructParser
extends java.lang.Object
Usually the Group supplied here is a RepeatGroup to
read everything until the end of the output, but any
StructGroup can be used to supply the beginning of the tree of
rules
| Constructor and Description |
|---|
StructParser(java.io.Reader reader,
StructGroup group)
Constructor to create this Parser
|
| Modifier and Type | Method and Description |
|---|---|
protected StructGroup |
getGroup()
get the StructGroup used for this parser
|
protected java.io.Reader |
getReader()
get the Reader used for this parser
|
java.lang.Object |
parse()
start parsing the input through the set of rules
|
public StructParser(java.io.Reader reader,
StructGroup group)
reader - Reader, the supplier of the inputgroup - StructGroup, the group of rules to apply
to this inputpublic java.lang.Object parse()
throws StructException
StructException - thrown if the Reader or StructGroup
cannot parse the content correctlyprotected StructGroup getGroup()
protected java.io.Reader getReader()