Class GenericCommentState
- java.lang.Object
-
- org.pipservices3.expressions.tokenizers.generic.GenericCommentState
-
- All Implemented Interfaces:
ICommentState,ITokenizerState
- Direct Known Subclasses:
CppCommentState
public class GenericCommentState extends Object implements ICommentState
A CommentState object returns a comment from a scanner.
-
-
Constructor Summary
Constructors Constructor Description GenericCommentState()
-
Method Summary
Modifier and Type Method Description TokennextToken(IScanner scanner, ITokenizer tokenizer)Either delegate to a comment-handling state, or return a token with just a slash in it.
-
-
-
Field Detail
-
LF
protected final int LF
- See Also:
- Constant Field Values
-
CR
protected final int CR
- See Also:
- Constant Field Values
-
-
Method Detail
-
nextToken
public Token nextToken(IScanner scanner, ITokenizer tokenizer) throws Exception
Either delegate to a comment-handling state, or return a token with just a slash in it.- Specified by:
nextTokenin 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
-
-