|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pfsw.text.BaseMatchRuleParser
public abstract class BaseMatchRuleParser
Abstract superclass for parsers that produce a MatchRule from any specific syntax. This class provides some common methods and a instance variables that holds a scanner (StringScanner) which most parsers need.
| Constructor Summary | |
|---|---|
BaseMatchRuleParser()
Initialize the new instance with default values |
|
BaseMatchRuleParser(java.lang.String rule)
Initialize the new instance with the given rule. |
|
| Method Summary | |
|---|---|
protected boolean |
atEnd(char ch)
Returns true, if the given character indicates the end of a scanned string. |
protected void |
checkExpectedEnd(char ch)
|
protected void |
checkUnexpectedEnd(char ch)
|
protected StringScanner |
scanner()
|
protected void |
scanner(StringScanner newValue)
|
protected StringUtil |
str()
|
protected void |
throwException(java.lang.String msg)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseMatchRuleParser()
public BaseMatchRuleParser(java.lang.String rule)
rule - Any rule string the internal scanner should be initialized with| Method Detail |
|---|
protected boolean atEnd(char ch)
protected void checkUnexpectedEnd(char ch)
throws MatchRuleParseException
MatchRuleParseException
protected void checkExpectedEnd(char ch)
throws MatchRuleParseException
MatchRuleParseException
protected void throwException(java.lang.String msg)
throws MatchRuleParseException
MatchRuleParseExceptionprotected StringScanner scanner()
protected void scanner(StringScanner newValue)
protected StringUtil str()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||