Class BasicTokenStream
- java.lang.Object
-
- org.apache.manifoldcf.scriptengine.BasicTokenStream
-
- All Implemented Interfaces:
TokenStream
public class BasicTokenStream extends java.lang.Object implements TokenStream
Convert a sequence of characters into a stream of tokens.
-
-
Field Summary
Fields Modifier and Type Field Description protected CharacterStreamcharacterStreamprotected TokencurrentToken
-
Constructor Summary
Constructors Constructor Description BasicTokenStream(java.io.Reader reader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static booleanisNumberCharacter(char x)protected static booleanisQuoteCharacter(char x)protected static booleanisTokenCharacter(char x)protected TokenparseNextToken()Tokenpeek()Examine the current token.voidskip()Skip the current token.
-
-
-
Field Detail
-
characterStream
protected CharacterStream characterStream
-
currentToken
protected Token currentToken
-
-
Method Detail
-
peek
public Token peek() throws ScriptException
Description copied from interface:TokenStreamExamine the current token.- Specified by:
peekin interfaceTokenStream- Throws:
ScriptException
-
skip
public void skip()
Description copied from interface:TokenStreamSkip the current token.- Specified by:
skipin interfaceTokenStream
-
parseNextToken
protected Token parseNextToken() throws ScriptException
- Throws:
ScriptException
-
isQuoteCharacter
protected static boolean isQuoteCharacter(char x)
-
isNumberCharacter
protected static boolean isNumberCharacter(char x)
-
isTokenCharacter
protected static boolean isTokenCharacter(char x)
-
-