|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.umlv.tatoo.runtime.lexer.rules.RuleData
public class RuleData
This class defined the a regular expression associated with a rule
of the lexer.
The regular expression is composed by one main
automaton,
one optional follow
automaton
and a property beginningOfLineRequired()
used to know if the regular expression
is restricted to match beginning of line.
Constructor Summary | |
---|---|
RuleData(RegexTable main,
RegexTable follow,
boolean beginningOfLineRequired)
Creates a data stratucture that xill be associated with a rule and that defined the regular expression. |
Method Summary | |
---|---|
boolean |
beginningOfLineRequired()
Indicates if he main regular expression associated with the rule must starts at the beginning of the line |
RegexTable |
getFollowRegex()
Returns the regular expression that must follow the main regular expression associated with this rule. |
RegexTable |
getMainRegex()
Returns the main regular expression associated with this rule. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleData(RegexTable main, RegexTable follow, boolean beginningOfLineRequired)
main
- follow
- beginningOfLineRequired
- Method Detail |
---|
public RegexTable getMainRegex()
public boolean beginningOfLineRequired()
true
if the main regular expression must starts at
the beginning a the line; false
otherwise.LexerBuffer.previousWasNewLine()
public RegexTable getFollowRegex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |