|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.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,
int priority,
boolean beginningOfLineRequired)
Creates a data structure that will 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. |
int |
getPriority()
Returns the priority of the 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,
int priority,
boolean beginningOfLineRequired)
main - main automatonfollow - following automaton or nullpriority - the priority associated with the rulebeginningOfLineRequired - if the main automaton requires a beginning of a line.| 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()
public int getPriority()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||