Class GenericCommentState
java.lang.Object
org.pipservices3.expressions.tokenizers.generic.GenericCommentState
- All Implemented Interfaces:
ICommentState
,ITokenizerState
- Direct Known Subclasses:
CppCommentState
A CommentState object returns a comment from a scanner.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnextToken
(IScanner scanner, ITokenizer tokenizer) Either delegate to a comment-handling state, or return a token with just a slash in it.
-
Field Details
-
LF
protected final int LF- See Also:
-
CR
protected final int CR- See Also:
-
-
Constructor Details
-
GenericCommentState
public GenericCommentState()
-
-
Method Details
-
nextToken
Either delegate to a comment-handling state, or return a token with just a slash in it.- Specified by:
nextToken
in interfaceITokenizerState
- Parameters:
scanner
- A textual string to be tokenized.tokenizer
- A tokenizer class that controls the process.- Returns:
- The next token from the top of the stream.
- Throws:
Exception
-