| java.lang.Object org.w3c.www.protocol.http.proxy.RuleParser
RuleParser | public class RuleParser (Code) | | A simple Rule parser.
|
Constructor Summary | |
public | RuleParser(InputStream in) Create a rule parser to parse the given input stream. |
Method Summary | |
protected void | addRule(String lhs, Rule rule) Add a mapping for the given rule in our rule node. | public RuleNode | parse() Parse the our input stream into a RuleNode instance. | protected void | parseRule(String tokens, int toklen) Create a suitable rule mapping for the tokenized rule. |
RuleParser | public RuleParser(InputStream in)(Code) | | Create a rule parser to parse the given input stream.
|
addRule | protected void addRule(String lhs, Rule rule)(Code) | | Add a mapping for the given rule in our rule node.
Parameters: lhs - The rule left hand side, as a parsed String array. Parameters: rule - The mapped rule instance. |
parseRule | protected void parseRule(String tokens, int toklen) throws RuleParserException(Code) | | Create a suitable rule mapping for the tokenized rule.
Parameters: tokens - The rule tokens, as a String array. Parameters: toklen - Number of tokens in above array. exception: RuleParserException - if parsing failed. |
|
|