Class CCommentState
- java.lang.Object
-
- org.pipservices3.expressions.tokenizers.generic.GenericCommentState
-
- org.pipservices3.expressions.tokenizers.generic.CppCommentState
-
- org.pipservices3.expressions.tokenizers.generic.CCommentState
-
- All Implemented Interfaces:
ICommentState,ITokenizerState
public class CCommentState extends CppCommentState
This state will either delegate to a comment-handling state, or return a token with just a slash in it.
-
-
Field Summary
-
Fields inherited from class org.pipservices3.expressions.tokenizers.generic.CppCommentState
SLASH, STAR
-
Fields inherited from class org.pipservices3.expressions.tokenizers.generic.GenericCommentState
CR, LF
-
-
Constructor Summary
Constructors Constructor Description CCommentState()
-
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.-
Methods inherited from class org.pipservices3.expressions.tokenizers.generic.CppCommentState
getMultiLineComment, getSingleLineComment
-
-
-
-
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- Overrides:
nextTokenin classCppCommentState- 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
-
-