Package org.jacop.util.fsm
Class LexicalAnalyzer
- java.lang.Object
-
- org.jacop.util.fsm.LexicalAnalyzer
-
class LexicalAnalyzer extends java.lang.Object
- Version:
- 4.8
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
Beginning
(package private) static int
DOT
(package private) static int
EOF
private java.io.StreamTokenizer
input
(package private) static int
INVALID_CHAR
(package private) static int
LEFT_PAREN
(package private) static int
NO_TOKEN
(package private) static int
Operator
(package private) static int
PLUS
(package private) static int
RIGHT_PAREN
(package private) static int
STAR
(package private) static int
WORD
-
Constructor Summary
Constructors Constructor Description LexicalAnalyzer(java.io.StringReader in)
Constructor creating a Lexical Analyzer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.String
getString()
Return the string recognized as word token or the body of a quoted string.(package private) int
nextToken()
Return the type of the next token.
-
-
-
Field Detail
-
input
private java.io.StreamTokenizer input
-
INVALID_CHAR
static final int INVALID_CHAR
- See Also:
- Constant Field Values
-
NO_TOKEN
static final int NO_TOKEN
- See Also:
- Constant Field Values
-
PLUS
static final int PLUS
- See Also:
- Constant Field Values
-
DOT
static final int DOT
- See Also:
- Constant Field Values
-
WORD
static final int WORD
- See Also:
- Constant Field Values
-
LEFT_PAREN
static final int LEFT_PAREN
- See Also:
- Constant Field Values
-
RIGHT_PAREN
static final int RIGHT_PAREN
- See Also:
- Constant Field Values
-
STAR
static final int STAR
- See Also:
- Constant Field Values
-
EOF
static final int EOF
- See Also:
- Constant Field Values
-
Operator
static final int Operator
- See Also:
- Constant Field Values
-
Beginning
static final int Beginning
- See Also:
- Constant Field Values
-
-
Method Detail
-
getString
java.lang.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.
-
-