public class PicPointExpression 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 |
---|
PicPointExpression(java.lang.String prefix,
java.lang.String delimiter,
java.lang.String postfix) |
Modifier and Type | Method and Description |
---|---|
PicPoint |
getPicPoint()
Returns the parsed PicPoint
|
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.
|
java.lang.String |
toString() |
action
public PicPointExpression(java.lang.String prefix, java.lang.String delimiter, java.lang.String postfix)
prefix
- the opening bracket e.g. "("delimiter
- the string that delimits the border between the two numbers e.g. ","postfix
- the closing bracket e.g. ")"
A typical use would be : PicPointExpression("(", ",", ")")public boolean interpret(Context c) throws REParserException
AbstractRegularExpression
interpret
in class AbstractRegularExpression
IncompleteSequence
- exception if there's nothing after the prefix...REParserException
- if an error occur during parsingpublic PicPoint getPicPoint()
public java.lang.String toString()
toString
in class java.lang.Object
Submit a bug : syd@jpicedt.org