Package org.jacop.util.fsm
Class LexicalAnalyzer
java.lang.Object
org.jacop.util.fsm.LexicalAnalyzer
- Version:
- 4.10
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
(package private) static final int
(package private) static final int
private StreamTokenizer
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
input
-
INVALID_CHAR
static final int INVALID_CHAR- See Also:
-
NO_TOKEN
static final int NO_TOKEN- See Also:
-
PLUS
static final int PLUS- See Also:
-
DOT
static final int DOT- See Also:
-
WORD
static final int WORD- See Also:
-
LEFT_PAREN
static final int LEFT_PAREN- See Also:
-
RIGHT_PAREN
static final int RIGHT_PAREN- See Also:
-
STAR
static final int STAR- See Also:
-
EOF
static final int EOF- See Also:
-
Operator
static final int Operator- See Also:
-
Beginning
static final int Beginning- See Also:
-
-
Constructor Details
-
LexicalAnalyzer
LexicalAnalyzer(StringReader in) Constructor creating a Lexical Analyzer.- Parameters:
in
- the StringReader providing the characters which are being analyzed.
-
-
Method Details
-
getString
String getString()Return the string recognized as word token or the body of a quoted string. -
nextToken
int nextToken()Return the type of the next token. For word and quoted string tokens, the string that the token represents can be fetched by calling the getString method.
-