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 intBeginning(package private) static intDOT(package private) static intEOFprivate java.io.StreamTokenizerinput(package private) static intINVALID_CHAR(package private) static intLEFT_PAREN(package private) static intNO_TOKEN(package private) static intOperator(package private) static intPLUS(package private) static intRIGHT_PAREN(package private) static intSTAR(package private) static intWORD
-
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.StringgetString()Return the string recognized as word token or the body of a quoted string.(package private) intnextToken()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.
-
-