public class RepeatExpression extends AbstractRegularExpression
ANY_CHAR, ANY_CHAR_EOL, ANY_SIGN, AT_LEAST, AT_MOST, DEBUG, DOUBLE, EOL, EXACTLY, INTEGER, NEGATIVE, NON_NULL, POSITIVE, STRICTLY_NEGATIVE, STRICTLY_POSITIVE, WHITE_SPACES, WHITE_SPACES_OR_EOL| Constructor and Description |
|---|
RepeatExpression(AbstractRegularExpression expr,
int repeat,
int mode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
interpret(Context c)
Parses this expression, possibly using the given Context to fetch the String to interpret
if this Expression is a leaf expression.
|
void |
setPattern(AbstractRegularExpression expr)
set the base-pattern to the given expression
|
java.lang.String |
toString() |
actionpublic RepeatExpression(AbstractRegularExpression expr, int repeat, int mode)
repeat - number of times this expression has to be found sequentially ;mode - EXACTLY, AT_LEAST or AT_MOSTpublic void setPattern(AbstractRegularExpression expr)
public boolean interpret(Context c) throws REParserException
AbstractRegularExpressioninterpret in class AbstractRegularExpressionREParserException - if an error occur during parsingpublic java.lang.String toString()
toString in class java.lang.ObjectSubmit a bug : syd@jpicedt.org