public class IndexedRule extends StructRule
BOL, EMPTY_LINE, EOB, EOL, m_attribute, m_out, m_terminate, SPACE| Constructor and Description |
|---|
IndexedRule(java.lang.String out,
boolean attribute) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearBuffer()
general method to clear a buffer which an implementation
of a StructRule can implement to keep all data between
StructRule.isFound() and StructRule.isFinished(). |
void |
readline(java.lang.String line)
read a line from the parser for processing, without
tracking the line number
|
void |
readline(java.lang.String line,
int lineno)
read a line from the parser for processing, with
tracking the line number
|
addTransformat, getParent, getTransformats, insertTransformat, isFinished, isFound, isTerminate, removeWhitespace, reset, set, setFinished, setFound, setParentprotected void clearBuffer()
StructRuleStructRule.isFound() and StructRule.isFinished().
This method is called from reset to clear the buffer between two independant uses of this rule
clearBuffer in class StructRuleStructRule.reset()public void readline(java.lang.String line)
StructRule
The StructParser supplies the input line for line. This
does not limit the rules to one line. This is only dependant
on StructRule.isFound() and StructRule.isFinished()
This method calls StructRule.readline(String, int) with lineno=-1
and will ignore lineno for information purposes
readline in class StructRuleline - String, the line to be readStructRule.readline(String, int),
StructParserpublic void readline(java.lang.String line,
int lineno)
StructRule
The StructParser supplies the input line for line. This
does not limit the rules to one line. This is only dependant
on StructRule.isFound() and StructRule.isFinished()
readline in class StructRuleline - String, the line to be readlineno - int, the linenumber of this lineStructParser