|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.util.fsm.RegularExpressionParser
public class RegularExpressionParser
Instances of this class parse the word combination little language.
| Nested Class Summary | |
|---|---|
class |
RegularExpressionParser.Expression
It creates an abstract class expression which specifies basic methods of the expression. |
class |
RegularExpressionParser.Literal
It specifies a simple literal. |
class |
RegularExpressionParser.SyntaxException
SyntaxException raised if not regular expression is being parsed. |
| Field Summary | |
|---|---|
static int |
Concatenation
The constant denoting concatenation expression. |
static int |
Expression
Constant denoting an expression. |
static int |
Literal
The constant denoting simple literal. |
static int |
Star
The constant denoting star expression. |
static int |
Sum
The constant denoting sum expression. |
| Constructor Summary | |
|---|---|
RegularExpressionParser(java.io.StringReader input)
It constructs a parser of the regular expression. |
|
| Method Summary | |
|---|---|
RegularExpressionParser.Expression |
parse(boolean parseOneNext)
This method parses an expression that it reads from a given input stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int Expression
public static final int Literal
public static final int Concatenation
public static final int Star
public static final int Sum
| Constructor Detail |
|---|
public RegularExpressionParser(java.io.StringReader input)
throws RegularExpressionParser.SyntaxException
input - string reader containing the regular expression.
RegularExpressionParser.SyntaxException - if first token is neither word or left parenthesis.| Method Detail |
|---|
public RegularExpressionParser.Expression parse(boolean parseOneNext)
throws RegularExpressionParser.SyntaxException
parseOneNext - if parsing should parse only one item.
RegularExpressionParser.SyntaxException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||